Skip to content

"tns test" fails with Unknown command 'dev-test|android'. #1199

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

Closed
dtopuzov opened this issue Nov 16, 2015 · 1 comment
Closed

"tns test" fails with Unknown command 'dev-test|android'. #1199

dtopuzov opened this issue Nov 16, 2015 · 1 comment

Comments

@dtopuzov
Copy link
Contributor

C:\Git>rm -rf TestApp

C:\Git>tns create TestApp
Project TestApp was successfully created

C:\Git>tns test init --path TestApp
? Select testing framework: jasmine
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
[email protected] TestApp\node_modules\karma
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
npm WARN peerDependencies The peer dependency jasmine-core@* included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
[email protected] TestApp\node_modules\jasmine-core

[email protected] TestApp\node_modules\karma-jasmine
[email protected] TestApp\node_modules\karma-nativescript-launcher
[email protected] TestApp\node_modules\nativescript-unit-test-runner
Successfully installed plugin nativescript-unit-test-runner.

Example test file created in app/tests/
Run your tests using the "$ tns test " command.

C:\Git>
C:\Git>
C:\Git>tns test android --path TestApp
16 11 2015 17:20:33.594:INFO [karma]: Karma v0.13.15 server started at http://localhost:9876/
16 11 2015 17:20:33.601:INFO [launcher]: Starting browser NativeScript Unit Test Runner
Copying template files...
spawn EBADF
Unknown command 'dev-test|android'. Try '$ tns help' for a full list of supported commands.
16 11 2015 17:22:08.033:INFO [launcher]: NativeScript deployment completed with code 127

@dtopuzov dtopuzov changed the title "tns test" fails with --path "tns test" fails with Unknown command 'dev-test|android'. Nov 16, 2015
@rosen-vladimirov
Copy link
Contributor

The real error is: spawn EBADF
The Unknown command 'dev-test|android'. is from our help service, because we do not provide help files for dev commands (dev-test). However I notice that you are executing tns test android, so I'm really confused.

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