Skip to content

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

Description

@dtopuzov

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
karma@0.13.15 TestApp\node_modules\karma
├── batch@0.5.3
├── di@0.0.1
├── rimraf@2.4.3
├── graceful-fs@4.1.2
├── mime@1.3.4
├── colors@1.1.2
├── http-proxy@1.12.0 (eventemitter3@1.1.1, requires-port@0.0.1)
├── minimatch@3.0.0 (brace-expansion@1.1.1)
├── glob@5.0.15 (path-is-absolute@1.0.0, inherits@2.0.1, inflight@1.0.4, once@1.3.2)
├── dom-serialize@2.2.1 (custom-event@1.0.0, void-elements@2.0.1, extend@3.0.0, ent@2.2.0)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── connect@3.4.0 (utils-merge@1.0.0, parseurl@1.3.0, debug@2.2.0, finalhandler@0.4.0)
├── useragent@2.1.7 (lru-cache@2.2.4)
├── expand-braces@0.1.2 (array-unique@0.2.1, array-slice@0.2.3, braces@0.1.5)
├── bluebird@2.10.2
├── body-parser@1.14.1 (bytes@2.1.0, content-type@1.0.1, depd@1.1.0, qs@5.1.0, http-errors@1.3.1, on-finished@2.3.0, raw-body@2.1.4, debug@2.2.0, iconv-lite@0.4.12, type-is@1.6.9)
├── source-map@0.5.3
├── chokidar@1.2.0 (arrify@1.0.0, path-is-absolute@1.0.0, glob-parent@2.0.0, async-each@0.1.6, is-binary-path@1.0.1, is-glob@2.0.1, lodash.flatten@3.0.2, readdirp@2.0.0, anymatch@1.3.0)
├── log4js@0.6.27 (async@0.2.10, underscore@1.8.2, readable-stream@1.0.33, semver@4.3.6)
├── lodash@3.10.1
├── core-js@1.2.6
└── socket.io@1.3.7 (debug@2.1.0, has-binary-data@0.1.3, engine.io@1.5.4, socket.io-adapter@0.3.1, socket.io-parser@2.2.4, socket.io-client@1.3.7)
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.
jasmine-core@2.3.4 TestApp\node_modules\jasmine-core

karma-jasmine@0.3.6 TestApp\node_modules\karma-jasmine
karma-nativescript-launcher@0.2.5 TestApp\node_modules\karma-nativescript-launcher
nativescript-unit-test-runner@0.2.8 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

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions