Code Monkey home page Code Monkey logo

Comments (5)

fpotter avatar fpotter commented on August 26, 2024

Hrm - can you paste in the output for us?

from xctool.

adamyanalunas avatar adamyanalunas commented on August 26, 2024

@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.

jdeff avatar jdeff commented on August 26, 2024

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.

jdeff avatar jdeff commented on August 26, 2024

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.

fpotter avatar fpotter commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.