Skip to content

test init and test android|ios commands - #1016

Merged
tailsu merged 3 commits into
masterfrom
sd/karma
Oct 20, 2015
Merged

test init and test android|ios commands#1016
tailsu merged 3 commits into
masterfrom
sd/karma

Conversation

@tailsu

@tailsu tailsu commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

Unit testing support for nativescript

Comment thread lib/commands/test.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ES6 compatible imports where possible

@teobugslayer

Copy link
Copy Markdown
Contributor

Running this code produced

The option 'port' is not supported. To see command's options, use '$ tns help dev-test'. To see all commands use '$ tns help'.

I recommend that we do not require for the CLI to be in the PATH, which is a breaking change and stops the users and QAs from using the CLI locally.

@tailsu
tailsu force-pushed the sd/karma branch 2 times, most recently from 6c9d144 to af1962a Compare October 13, 2015 13:47
@tailsu

tailsu commented Oct 13, 2015

Copy link
Copy Markdown
Contributor Author

No more manual steps. Just check out the branch and all testing commands should just work.

Comment thread lib/commands/test-init.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to make this message more visible - perhaps using yellow color.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@tailsu

tailsu commented Oct 15, 2015

Copy link
Copy Markdown
Contributor Author

The unit test runner should be installed as a plugin, not in this hacky way. I'm going to fix that, so sit tight for more commits.

@tailsu
tailsu force-pushed the sd/karma branch 2 times, most recently from 1a9a69a to 8194a2a Compare October 15, 2015 12:47
@ns-bot

ns-bot commented Oct 15, 2015

Copy link
Copy Markdown

Test PASSed.

@ns-bot

ns-bot commented Oct 15, 2015

Copy link
Copy Markdown

Test PASSed.

@teobugslayer

Copy link
Copy Markdown
Contributor

👍

@ns-bot

ns-bot commented Oct 15, 2015

Copy link
Copy Markdown

Test PASSed.

@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

* install and serve testing framework dependencies
* jasmine and mocha support
* respect --watch option in tns test
* pass $config.DEBUG to karma server
* support for ios simulator
* exclude tests/ folder from release builds
* documentation for test commands
* pass log level and --path if specified to karma
* pass path to node executable and path to nativescript cli entry point to karma
* '--framework' option for `tns test init`
* deploy unit test runner as tns plugin
* option to debug socket.io in unit test runner
@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

1 similar comment
@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

1 similar comment
@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test PASSed.

@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

tailsu added a commit that referenced this pull request Oct 20, 2015
`test init` and `test android|ios` commands
@tailsu
tailsu merged commit 062163e into master Oct 20, 2015
@tailsu
tailsu deleted the sd/karma branch October 20, 2015 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants