Hello , I would love to be able to get a list of all my tests, eg for counting and ensuring that when a suite is done that it did actually test the expected number of tests.
However, when I try to use the listTestsOnly feature, I only get back the target, not the tests. In other words, if I pass a value on the commandline I get its value back.
Is this as it is designed? Or am I missing something?
$ xctool -project MYAPP.xcodeproj -scheme Enterprisefly -sdk "iphonesimulator12.2" run-tests -listTestsOnly -only 'MYAPPTests'
[Info] Loading settings for scheme 'Enterprisefly' ... (8454 ms)
=== RUN-TESTS ===
[Info] Collecting info for testables... (3154 ms)
run-test MYAPPTests.xctest (iphonesimulator12.2, iPhone 5s, logic-test)
** RUN-TESTS SUCCEEDED: 0 passed, 0 failed, 0 errored, 0 total ** (3159 ms)
If I run it without the -only , then it shows just a list of all our Kits, again not including the tests inside them.
References.
1.FYI, An old Ticket on this feature was
xctool hangs at run-tests --listTestsOnly (Xcode 7.3) #689
2.Initial implementation : Add new flag to run-tests/test action: -listTestsOnly #356
Merged LegNeato merged 1 commit into master from nekto/add_list_tests_flag on Apr 27, 2014
3.Code https://github.com/facebook/xctool/search?utf8=✓&q=onlylist&type=
4.SO https://stackoverflow.com/questions/45268746/how-to-list-all-test-cases-using-xcodebuild-without-running
Hello , I would love to be able to get a list of all my tests, eg for counting and ensuring that when a suite is done that it did actually test the expected number of tests.
However, when I try to use the listTestsOnly feature, I only get back the target, not the tests. In other words, if I pass a value on the commandline I get its value back.
Is this as it is designed? Or am I missing something?
If I run it without the -only , then it shows just a list of all our Kits, again not including the tests inside them.
References.
1.FYI, An old Ticket on this feature was
xctool hangs at
run-tests --listTestsOnly(Xcode 7.3) #6892.Initial implementation : Add new flag to run-tests/test action:
-listTestsOnly#356Merged LegNeato merged 1 commit into master from nekto/add_list_tests_flag on Apr 27, 2014
3.Code https://github.com/facebook/xctool/search?utf8=✓&q=onlylist&type=
4.SO https://stackoverflow.com/questions/45268746/how-to-list-all-test-cases-using-xcodebuild-without-running