https://github.com/dojo/cli-test-unit
Dojo command for unit tests
https://github.com/dojo/cli-test-unit
Last synced: 21 days ago
JSON representation
Dojo command for unit tests
- Host: GitHub
- URL: https://github.com/dojo/cli-test-unit
- Owner: dojo
- License: other
- Created: 2019-01-11T15:38:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T16:30:19.000Z (over 2 years ago)
- Last Synced: 2025-01-12T09:31:55.471Z (over 1 year ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# cli-test-unit
[](https://travis-ci.org/dojo/cli-test-unit)
[](https://ci.appveyor.com/project/Dojo/cli-test-unit/branch/master)
[](https://codecov.io/gh/dojo/cli-test-unit)
[](https://badge.fury.io/js/%40dojo%2Fcli-test-unit)
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:
```bash
npm install @dojo/cli-test-unit
```
### Basic Usage
```bash
dojo test unit
```
## How do I contribute?
We appreciate your interest! Please see the [Dojo Meta Repository](https://github.com/dojo/meta#readme) for the Contributing Guidelines.
### Code Style
This repository uses [`prettier`](https://prettier.io/) 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:
```bash
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) license.
[Dojo CLI]: https://github.com/dojo/cli
[Intern]: https://theintern.io/
[JS Foundation]: https://js.foundation/
>>>>>>> Initial repo skeleton