-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
tns test android launches the app instead of running the tests #4571
Comments
You need to update your nativescript-dev-webpack plugin and webpack.config.js file.
After that you can initialize the tests and run them.
|
Thank you. |
No luck. |
Can you please ensure that you passed If this is not the case, you need to ensure that the device and your computer are in the same network. This is a requirement in order to run unit tests on a connected device. |
They were indeed on a different network; PC on wifi, and phone on data. |
Although as per #4574, it seems that the new webpack (which is needed for unit tests) breaks uglify, so I don't know if I'd want it on my main branch yet. |
I am also facing some issues while running the test cases. They get executed and suddenly mobile application on which test results are being displayed gets shut down. I neither able to see my test cases on mobile neither on browser. |
Environment
Using angular.
Describe the bug
Unit tests aren't run.
Using angular.
tns test android --bundle runs the app. It does not run unit tests.
To Reproduce
git clone https://github.com/yringler/rabbi-gordon-audio
git checkout 15-unit-test
tns test android --bundle
Expected behavior
Unit tests are run
Sample project
https://github.com/yringler/rabbi-gordon-audio/tree/15-unit-test
The text was updated successfully, but these errors were encountered: