cli-test-intern
The official Dojo 2 test command.
WARNING This is beta software. While we do not anticipate significant changes to the API at this stage, we may feel the need to do so. This is not yet production ready, so you should use at your own risk.
Features
Builds and runs test cases for a Dojo 2 application. This module assumes that your project is structured
as it would be if created by dojo create
. Specifically, src
and tests
should be in the root of the project directory,
and tests
should have functional
and unit
folders with all.ts
files in each that import other tests.
How do I use this package?
To build and run tests locally, just execute dojo test
in your project. There are several configuration options, to see what
options are available run dojo test -h
How do I contribute?
We appreciate your interest! Please see the Dojo 2 Meta Repository for the Contributing Guidelines and Style Guide.
Testing
Test cases MUST be written using Intern using the Object test interface and Assert assertion interface.
90% branch coverage MUST be provided for all code submitted to this repository, as reported by Istanbul’s combined coverage results for all supported platforms.
To test locally in node run:
grunt test
Licensing information
- ora (MIT)
- Chalk(MIT)
- cross-spawn(MIT)
- pkg-dir(MIT)
- Istanbul(New BSD)
- Mockery(MIT)
- codecov.io(MIT)
- Glob(ISC)
- grunt-tslint(Apache 2.0)
- Sinon.JS(New BSD)
- TSLint(Apache 2.0)
- yargs(MIT)
© 2004–2017 JS Foundation & contributors. New BSD license.