Skip to content

Running tns test android does not detect tests and is stuck in test: loading; #5607

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

Open
ZachPerkitny opened this issue Nov 5, 2021 · 3 comments

Comments

@ZachPerkitny
Copy link

Environment

  • CLI: 8.1.4
  • karma: 6.3.7
  • karma-jasmine: 4.0.1
  • karma-webpack: 5.0.0
  • karma-nativescript-launcher: ~2.9.0

Describe the bug

I initalized tests using tns test init using jasmine. After running tns test android, in the browser the header shows test: loading and it doesn't appear to load any test files in the network tab. The mobile app that's launched on my emulator shows no tests. I did not make any modifications to the version of the dependencies or to the generated karma.conf.js. There were no errors in the logs.

To Reproduce

Run tns test init and select jasmine
Run tns test android, it launches the app with no tests displayed. In the browser, it displays test:loading

Expected behavior
My unit tests to be displayed and their status.

@alexist
Copy link

alexist commented Jan 11, 2022

Maybe related to #4182

@antischematic
Copy link

Also experiencing this issue, same env except using mocha instead of jasmine.

@antischematic
Copy link

I found the cause of this problem for me was running the test under a network proxy, which prevented the context.json files from loading. Disabling the proxy fixed the error. Upgrading to unit-test-runner 3.0.4 revealed the context.json error in the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants