smelly-cli
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "smelly-cli", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Find out the smells in your tests, suggestions for correction and the theory behind them", |
@@ -10,2 +10,18 @@ # @smelly/cli | ||
## Installation | ||
### docker | ||
```sh | ||
g clone https://github.com/marabesi/smelly-test.git | ||
cd smelly-test/cli | ||
docker build . -t smelly-cli | ||
``` | ||
Running the report | ||
```sh | ||
docker run --rm smelly-cli | ||
``` | ||
## Command Line Interface | ||
@@ -16,9 +32,9 @@ | ||
```sh | ||
npm run cli -- path/to/file/test.js typescript | ||
npx smelly-cli /smells/my-test.ts typescript | ||
``` | ||
Report | ||
Report (must be a path with tests in it) | ||
```sh | ||
npm run cli -- path/to/file/test.js typescript --report=html | ||
npx smelly-cli /smells/ javascript --report=html $(pwd) | ||
``` | ||
@@ -25,0 +41,0 @@ |
50830
24
44