plu / pxctest

Execute tests in parallel on multiple iOS Simulators
MIT License
800 stars 57 forks source link

Output to CircleCi is ......FF.......... #24

Closed Kmohamed closed 7 years ago

Kmohamed commented 7 years ago

I use --output command to output pxctest result to circle CI but I want the JUnit file to be passed to Circle CI

Kmohamed commented 7 years ago

this is my command: pxctest run-tests --destination 'name=iPhone 5,os=iOS 9.3' --destination 'name=iPhone 5,os=iOS 10.1' --testrun build/Products/iphonesimulator10.1-i386.xctestrun --output $CIRCLE_TEST_REPORTS/xcode/uitest_results.xml

plu commented 7 years ago

I've never used Circle CI myself. But I found some documentation on how to collect test metadata here:

http://circleci.com/docs/1.0/test-metadata/

Maybe that will help you. pxctest will generate some JUnit report(s) inside the output directory. Just look for them there and you will find them.

plu commented 7 years ago

You could also run this command locally and then see how the files look like that were generated when using --output. It does create a directory structure with a couple of files in it. This is why --output $CIRCLE_TEST_REPORTS/xcode/uitest_results.xml does not work for you as expected.

Kmohamed commented 7 years ago

Thanks 👍

plu commented 7 years ago

You're welcome 👍 .