boring-test v1.6.3
Boring Test
Boring Test is a CLI to automate react (boring) tests.
Getting started
You can use Boring Test in two different ways:
Installing the CLI globally with NPM
$ npm i -g boring-testOr running the CLI with NPX
$ npx boring-test -f the/path/to/the/file.js -t cssUsage
The Boring Test CLI supports two ways to generate a testing file:
With a file and a template argument
$ npx boring-test src/file.js -t cssWith two arguments:
fstands forfiletstands fortemplate
The file argument expects the component file to be tested.
The template options are: css, ui, and default. The css template will generate a test for styled components. The ui template will generate a test for the component using Enzyme. If you do not pass the template, it will generate an empty test file.
Examples
When passing the file not as an argument
$ npx boring-test src/file.js -t cssIt creates the test file in the src/tests/file.test.js path with the css template.
When passing the file and template
$ npx boring-test -f src/file.js -t cssIt creates the test file in the src/tests/file.test.js path with the css template.
When passing the file only
$ npx boring-test -f src/file.jsWith no template, it generates the default test file. Today it create just an empty file in the src/tests/file.test.js path.
When not passing the file
$ npx boring-test -t cssWith no file, it can't generate any test template. so it just sends a message to Add a file as the -f argument.
Generate templates
Generate the templates in your project.
$ npx boring-test generate-templatesNow you have the default and the css templates in a templates folder inside your project.
Demo

Contributing
Boring Test is always open to accept contributors.
Reporting Issues
When creating an issue, be clear in the title and description with relevant information.
Project
Take a look at the project for future features and bug fixes.
Sending PRs
Before sending a new Pull Request, take a look on existing Pull Requests and the project for current work in development.
License
Boring Test is MIT licensed.