Bitrise의 Xcode Test for iOS에서 xcpretty-json-formatter 사용
이전 단락
Danger
Bitrise
에서 Dangerdanger-xcode_summary
도 사용하세요xcpretty-json-formatter
Running the tests...
$ set -o pipefail && env "NSUnbufferedIO=YES" xcodebuild "-workspace" "/Users/vagrant/git/hoge.xcworkspace" "-scheme" "hoge" "build" "COMPILER_INDEX_STORE_ENABLE=NO" "test" "-destination" "id=A7F5E87E-37C3-47DC-B911-FE80D8CBFED7" "-resultBundlePath" "/var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/XCUITestOutput773104676/Test.xcresult" "GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES" "GCC_GENERATE_TEST_COVERAGE_FILES=YES" | xcpretty "-f" "`xcpretty-json-formatter`" "--color" "--report" "html" "--output" "/Users/vagrant/deploy/xcode-test-results-hoge.html"
/Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty.rb:19:in `read': No such file or directory @ rb_sysopen - `xcpretty-json-formatter` (Errno::ENOENT)
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty.rb:19:in `class_from_path'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty.rb:27:in `load_custom_class'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:42:in `block (2 levels) in <top (required)>'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1614:in `block in parse_in_order'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1568:in `catch'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1568:in `parse_in_order'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1562:in `order!'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1656:in `permute!'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1678:in `parse!'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:73:in `block in <top (required)>'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0/optparse.rb:1089:in `initialize'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:27:in `new'
from /Users/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:27:in `<top (required)>'
from /Users/vagrant/.rbenv/versions/2.6.3/bin/xcpretty:23:in `load'
from /Users/vagrant/.rbenv/versions/2.6.3/bin/xcpretty:23:in `<main>'
현상.
No such file or directory
"-f" "`xcpretty-json-formatter`"
mackoj > I did find a way to fix it but the auto double quoting is still very annoying...
해결하다
envman add --key XCPRETTY_JSON_FORMATTER --value `xcpretty-json-formatter`
-f ${XCPRETTY_JSON_FORMATTER}
참고 자료
Reference
이 문제에 관하여(Bitrise의 Xcode Test for iOS에서 xcpretty-json-formatter 사용), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/n_komiya/items/70794b0462db59003eab텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)