Comments (5)
Hrm - can you paste in the output for us?
from xctool.
@fpotter Whoops, I should have pasted that in. Here you go:
$ xctool -workspace MyApp.xcworkspace -scheme MyApp ONLY_ACTIVE_ARCH=NO test
[Info] Collecting build settings ... (1282 ms)
=== TEST ===
xcodebuild build build
Pods / Pods (Debug)
✓ Check dependencies (323 ms)
Pods / Pods-KiwiUnitTest (Debug)
✓ Check dependencies (157 ms)
MyApp / MyApp (Debug)
✓ Check dependencies (303 ms)
✓ Run custom shell script 'Copy Pods Resources' (67 ms)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
rsync -av --exclude '*/.svn/*' /Users/thatguy/Code/MyApp/Pods/ZAActivityBar/ZAActivityBar/ZAActivityBar.bundle /Users/thatguy/Library/Developer/Xcode/DerivedData/MyApp-fvyajjdocblkjhfmmzrsrkgbrqgh/Build/Products/Debug-iphonesimulator/MyApp.app
building file list ... done
sent 157 bytes received 20 bytes 354.00 bytes/sec
total size is 7055 speedup is 39.86
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MyApp / KiwiUnitTest (Debug)
✓ Check dependencies (10 ms)
✓ Run custom shell script 'Run Script' (19 ms)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/Applications/Xcode.app/Contents/Developer/Tools/RunUnitTests:68: note: RunUnitTests exited without running tests because TEST_AFTER_BUILD was set to NO.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Run custom shell script 'Copy Pods Resources' (17 ms)
run-test KiwiUnitTest.octest (iphonesimulator6.1, application-test, GC OFF)
[Info] Installing '/Users/thatguy/Library/Developer/Xcode/DerivedData/MyApp-fvyajjdocblkjhfmmzrsrkgbrqgh/Build/Products/Debug [Info] Installing '/Users/thatguy/Library/Developer/Xcode/DerivedData/MyApp-fvyajjdocblkjhfmmzrsrkgbrqgh/Build/Products/Debug-iphonesimulator/MyApp.app' ... (1215 ms)
[Info] Launching test host and running tests ...
failed: Failed to run tests
** TEST FAILED: 0 of 0 tests passed ** (5307 ms)
Of note I'm using the HEAD version of xctool
from Homebrew. I've also checked on permissions for various files and folders; everything looks good.
from xctool.
I'm running into this issue as well. It seems to happen if I add MessageUI.framework to my target. When I remove that library, the tests run just fine.
Xcode: Version 4.6.3 (4H1503)
OS: 10.8.4
Xctool: 0.1.7
from xctool.
So my issue was that my application was crashing when it was launched. Adding MessageUI.framework is what exposed it. The crash ended up being because of a class name collision.
You can easily watch the OS console while running xctool to see if your app crashes. However, I do hope that xctool can identify this and log something more helpful to the user. Something like even as simple as
run-test KiwiUnitTest.octest (iphonesimulator6.1, application-test, GC OFF)
[Info] Installing '/Users/thatguy/Library/Developer/Xcode/DerivedData/MyApp-fvyajjdocblkjhfmmzrsrkgbrqgh/Build/Products/Debug [Info] Installing '/Users/thatguy/Library/Developer/Xcode/DerivedData/MyApp-fvyajjdocblkjhfmmzrsrkgbrqgh/Build/Products/Debug-iphonesimulator/MyApp.app' ... (1215 ms)
[Info] Launching test host and running tests ...
[Error] Test host has crashed
from xctool.
0.1.14 now has much better reporting when application tests fail to run. If the tests never start, xctool should give the the stdout/stderr from the test host so you know what's going on.
from xctool.
Related Issues (20)
- The bundle extension 'app' is not supported HOT 13
- Resolve build settings for all targets simultaneosly HOT 2
- Failed to query the list of test cases in the test bundle HOT 3
- Cannot find Xcode's plist at: /Library/Developer/CommandLineTools/../Info.plist HOT 1
- Xcode 10 dropped 32-bit support HOT 1
- Xcode 10 cannot run some -appTest targets HOT 1
- New release for Xcode 10? HOT 1
- brew formula for xctool needs to be updated to 0.3.5 HOT 1
- Failures on Mojave running app host tests with `exit code 132` HOT 28
- Suite timeout not calculated correctly in all cases
- illegal hardware instruction HOT 5
- xctool run-tests --listTestsOnly only shows targets HOT 1
- xctool fails to run tests in Xcode 10.2.1 after Xcode 11 has been installed ("Invalid device state") -- need to specify "--standalone" HOT 15
- Missing absolute file ref to TestProject-Library-32And64bitTests-Info.plist
- XCode 11: Can't find library libXCTestSwiftSupport.dylib when running tests HOT 12
- fail with Xcode 11.1 An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=165): Invalid device state HOT 5
- No target application path specified via test configuration: (null) HOT 2
- Using new build system HOT 3
- Failed to find test host app for test target
- not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xctool.