Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

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

Open
dzzh opened this issue Mar 29, 2017 · 8 comments
Open

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

dzzh opened this issue Mar 29, 2017 · 8 comments

Comments

@dzzh
Copy link

dzzh commented Mar 29, 2017

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
Copy link
Owner

plu commented Mar 29, 2017

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

@dzzh
Copy link
Author

dzzh commented Mar 29, 2017

>pxctest version
pxctest 0.3.1 (f132fd7)

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

@plu
Copy link
Owner

plu commented Mar 29, 2017

Happy to hear that!

@plu
Copy link
Owner

plu commented Mar 29, 2017

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
Copy link
Author

dzzh commented Mar 29, 2017

Would it maybe make sense to create a new release?

@plu
Copy link
Owner

plu commented Mar 29, 2017

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
Copy link
Author

dzzh commented Mar 29, 2017

Great, thanks.

@amesandy-zz
Copy link

amesandy-zz commented Apr 27, 2017

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 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants