Skip to content

Conversation

tailsu
Copy link
Contributor

@tailsu tailsu commented Oct 6, 2015

Unit testing support for nativescript


"use strict"

import constants = require("../constants");
Copy link
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
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
Copy link
Contributor Author

tailsu commented Oct 13, 2015

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

this.$logger.info('Place your test files under app/tests/');
}

this.$logger.info('Run your tests using the "$ tns test <platform>" command.');
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

Done.

@tailsu
Copy link
Contributor Author

tailsu commented Oct 15, 2015

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
Copy link

ns-bot commented Oct 15, 2015

Test PASSed.

@ns-bot
Copy link

ns-bot commented Oct 15, 2015

Test PASSed.

@teobugslayer
Copy link
Contributor

👍

@ns-bot
Copy link

ns-bot commented Oct 15, 2015

Test PASSed.

@ns-bot
Copy link

ns-bot commented Oct 20, 2015

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
Copy link

ns-bot commented Oct 20, 2015

Test FAILed.

1 similar comment
@ns-bot
Copy link

ns-bot commented Oct 20, 2015

Test FAILed.

@ns-bot
Copy link

ns-bot commented Oct 20, 2015

Test FAILed.

1 similar comment
@ns-bot
Copy link

ns-bot commented Oct 20, 2015

Test FAILed.

@ns-bot
Copy link

ns-bot commented Oct 20, 2015

Test FAILed.

@ns-bot
Copy link

ns-bot commented Oct 20, 2015

Test PASSed.

@ns-bot
Copy link

ns-bot commented Oct 20, 2015

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