-
-
Notifications
You must be signed in to change notification settings - Fork 197
unit testing for freshly created angular project is broken on android simulator #4232
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
Comments
You need to add
|
Thank you.
the run fails
|
I think the problem is in a new angular project structure not being able to work together with test runner. Does anybody use unit tests for new angular project structure? Thank you. |
A little bit digging:
issue 2:
it looks like now Hope it will help |
As a temporary workaround I can suggest you to modify manually
After that you need to execute |
Thank you.
If I run on Android without the flag test runs but displays an error at the end and output is slightly different from iOS:
on Android there is no output lines
Thanks again I hope the fix will be included into next release of test runner |
Hi,
it looks like test runner is not able to find installed chai npm package |
is there any workaround there? |
@ochemerys
|
@dldinza-web |
I see two issues reported above:
Issue #1 is fixed in Issue #2 is duplicate of #3146 (comment) |
Environment
$ tns doctor
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 10.1.0 satisfies minimum required version 9.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.1.0 version and is up to date.
✔ Component tns-core-modules has 5.1.0 version and is up to date.
✔ Component tns-android has 5.1.0 version and is up to date.
✔ Component tns-ios has 5.1.0 version and is up to date.
karma.conf.js contains
// list of files / patterns to load in the browser
files: [
'src/tests/**/*.js'
],
android simulator: Nexus_S_API_28
Describe the bug
unit testing for freshly created angular project is broken on android
To Reproduce run commands
select mocha
$ tns test android
after running test application run is failed
$ tns run android
see screenshot above
app can be run only after command
$ tns platform clean android
Expected behavior
example test should run on android
The text was updated successfully, but these errors were encountered: