Skip to content

Fix first unit tests execution #2019

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

Merged
merged 1 commit into from
Aug 30, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Aug 30, 2016

First call to tns test <platform> always fails as the file with Karma configuration is not sent to device. The reason is that it's created in node_modules/unit-test-runner after the project is prepared.
The second execution of the command will include the file, but it may not be correct. It's regenerated, but again after the project is prepared.
Fix the test-execution-service to prepare the project after the configuration file is created.
Fixes #1636 and possibly #2016
Fixes the problem in Travis builds that console hangs and travis builds never end (prove of concept here: rosen-vladimirov/ns-unit-test-travis#1 )

First call to `tns test <platform>` always fails as the file with Karma configuration is not sent to device. The reason is that it's craeted in `node_modules/unit-test-runner` after the project is prepared.
The second execution of the command will include the file, but it may not be correct. It's regenerated, but again after the project is prepared.
Fix the `test-execution-service` to prepare the project after the configuration file is created.
Fixes #1636 and possibly #2016
Fixes the problem in Travis builds that console hangs and travis builds never end.
@rosen-vladimirov rosen-vladimirov added this to the 2.3.0 milestone Aug 30, 2016
@rosen-vladimirov rosen-vladimirov self-assigned this Aug 30, 2016
@rosen-vladimirov rosen-vladimirov merged commit f875561 into master Aug 30, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-unit-test-runner branch August 30, 2016 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant