The official Dojo 2 test command.
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.
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
We appreciate your interest! Please see the Dojo 2 Meta Repository for the Contributing Guidelines and Style Guide.
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
- 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.