-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDD mode only works on simulator #472
Comments
similar errors are occurring when trying to use it on a |
I'd give up on TDD for Nimble tests. I don't think it will work, certainly not on a device. |
Have you run the tests previously on the device before you tried to inject it? |
If you're wondering where the talk about Nimble comes from where a test file contains |
Yes, I did run the tests on the device before trying to run the app. I’ll create a small demo project and send it here … also I will try renaming the file to something else the FooSpec, and see if it gives different errors / works. |
So, basically, injecting tests never worked on a device (I don't think anyone has ever asked for it) but I've pushed a new release candidate where they can when you're using a new version of the copy_bundle.sh script. I appreciate your testing the furtherest reaches of injectionIII and raising issues even if your timing isn't great. Let me know how you get on with the new version; I think even TDD mode works! |
Hi! sorry for the late response, I've been playing with the RC you've sent and encountered a couple of issues:
to
Fixing this two issues allowed me to run tests in TDD Mode, but it seems like I keep getting |
The issue seems to be coming from the |
Probably passing a nil pointer for the test. If you're using a Nimble.framework you'll need to copy it into your app bundle somewhere or in the injection bundle if it's not already there and load it in |
Any progress? Linking with nimble is a bit tricky and you need to link with the -framework Nimble switch and then you need to dynamically load it before you try to load you client library. |
If you're wondering what's happened to the repo, what started out as "just a couple of changes" for 4.8.1 has mushroomed a bit so I've rebased the recent commits on main onto a new PR branch "codesigning" and deleted them. |
Hi!
I have been trying to get TDD mode working on a physical device (some of our tests require MetalPerformanceShaders and cannot run on simulator).
This didn't work for me ... but the same tests do work on simulator
I added a file
Foo.swift
and a test file on another target
FooSpec.swift
and this is the log I am getting when re-saving
Foo.swift
trying to do the same on simulator - seems to work fine
The text was updated successfully, but these errors were encountered: