Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onechiporenko/tests-checker
Checks mocha/chai/sinon tests for bad code (just for education purposes)
https://github.com/onechiporenko/tests-checker
Last synced: 1 day ago
JSON representation
Checks mocha/chai/sinon tests for bad code (just for education purposes)
- Host: GitHub
- URL: https://github.com/onechiporenko/tests-checker
- Owner: onechiporenko
- License: mit
- Created: 2015-12-18T11:15:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-27T08:52:16.000Z (2 months ago)
- Last Synced: 2024-07-27T09:51:45.663Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tests checker
Module checks tests written with mocha/chai/sinon for issues:
* Usage `restore/spy/stub` in the `it`
* To many `expect` in the one `it`
* `it` with empty title## Install
```
git clone https://github.com/onechiporenko/tests-checker
cd test-checker
npm i
# tests-checker will be available in your $PATH (optional)
npm link
```## Usage
```
cd test-checker
# or if you linked simply run
tests-checker --help
```Help:
```
node index.js --help
```Check each file in the provided path
```
node index.js -p /my/folder/with/tests/**/*.js
```Check each file in the provided path and save results to the file
```
node index.js -p /my/folder/with/tests/**/*.js -f output.txt --no-color
```