pxctest icon indicating copy to clipboard operation
pxctest copied to clipboard

pxctest doesn't find tests in the test run

Open dzzh opened this issue 8 years ago • 8 comments

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'

dzzh avatar Mar 29 '17 09:03 dzzh

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

plu avatar Mar 29 '17 09:03 plu

>pxctest version
pxctest 0.3.1 (f132fd7)

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

dzzh avatar Mar 29 '17 10:03 dzzh

Happy to hear that!

plu avatar Mar 29 '17 10:03 plu

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.

plu avatar Mar 29 '17 10:03 plu

Would it maybe make sense to create a new release?

dzzh avatar Mar 29 '17 10:03 dzzh

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.

plu avatar Mar 29 '17 10:03 plu

Great, thanks.

dzzh avatar Mar 29 '17 10:03 dzzh

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 [1mTotal - Finished executing 0 tests. 0 Failures, 0 Unexpected[0m [31mTest run was empty, no tests were executed[0m

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 .

amesandy-zz avatar Apr 27 '17 20:04 amesandy-zz