plu / pxctest

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

pxctest doesn't find tests in the test run #30

Open dzzh opened 7 years ago

dzzh commented 7 years ago

After updating to Xcode 8.3 I have switched to the master build of pxctest (because 0.3.1 doesn't work with Xcode 8.3) and tried to run our test suite. Pxctest reported Test run was empty, no tests were executed error.

If I run the test suite with xcodebuild using the command below, all the test files are found and executed .

xcodebuild test-without-building \
    -xctestrun './xcode-build-dir/Build/Intermediates/CodeCoverage/Products/MyApp_iphonesimulator10.3-x86_64.xctestrun' \
    -destination "OS=10.3,name=iPhone 7 Plus"

To run pxctest, I use the following command:

pxctest run-tests \
    --destination 'name=iPhone 7 Plus,os=iOS 10.3' \
    --testrun './xcode-build-dir/Build/Intermediates/CodeCoverage/Products/MyApp_iphonesimulator10.3-x86_64.xctestrun' \
    --output './xcode-build-dir/reports'
plu commented 7 years ago

Can you please provide the output of pxctest version? I made some changes today, just want to make sure your version includes these.

dzzh commented 7 years ago
>pxctest version
pxctest 0.3.1 (f132fd7)

After I've reinstalled pxctest today, it works fine. Thanks for your effort!

plu commented 7 years ago

Happy to hear that!

plu commented 7 years ago

If you don't mind, let's keep this issue open. I bet other users will run into it once updating to Xcode 8.3.

dzzh commented 7 years ago

Would it maybe make sense to create a new release?

plu commented 7 years ago

Sure, I can do that. I'm also considering embedding the Swift Runtime Libraries instead of loading them dynamically from the Xcode path. I should probably make a decision and then do a release.

dzzh commented 7 years ago

Great, thanks.

amesandy-zz commented 7 years ago

I have the same issue, I also updated to pxctest version 0.3.3, however I got next issueiPad Air iOS 10.3 - Finished executing 0 tests after 0.002s. 0 Failures, 0 Unexpected Total - Finished executing 0 tests. 0 Failures, 0 Unexpected Test run was empty, no tests were executed

I also noticed that xctestrun file is not generated ok, in the sense the name of the test files are not the same on the xctestrun file .