cli-test-intern
The official Dojo 2 test command.
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
© 2004–2017 JS Foundation & contributors. New BSD license.