Skip to content

dojo/cli-test-unit

Repository files navigation

cli-test-unit

Build Status Build status codecov npm version

The official Dojo unit test command. This package uses Intern to run unit tests against your Dojo project.

Usage

Prerequisites

This project is a command for the Dojo CLI. Please visit the Dojo CLI project for information about the project and how to install.

Installation

The use @dojo/cli-test-unit in a project, install the package:

npm install @dojo/cli-test-unit

Basic Usage

dojo test unit

How do I contribute?

We appreciate your interest! Please see the Dojo Meta Repository for the Contributing Guidelines.

Code Style

This repository uses prettier for code styling rules and formatting. A pre-commit hook is installed automatically and configured to run prettier against all staged files as per the configuration in the projects package.json.

An additional npm script to run prettier (with write set to true) against all src and test project files is available by running:

npm run prettier

Testing

Test cases MUST be written using Intern using the "bdd" 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:

npm test

© 2018 JS Foundation & contributors. New BSD license.

Initial repo skeleton

About

Dojo command for unit tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published