Skip to content

Commit

Permalink
V3 support (#31)
Browse files Browse the repository at this point in the history
* convert to yarn

* move files to src folder and do related house keeping

* refactor test result building

* refactor suite mapping

* refactor write results

* refactor updating of suite results

* additional refactoring for map suite

* refactor map test to have consistent style

* add index file for map_test

* add unit tests in map_suite

* add unit test for map suite

* add unit tests for map_test

* remove package-lock

* update travis

* try to fix missing file

* attempt to fix missing file on github

* cleanup file mixup

* cleanup file mixup

* update node version and specify frozen lockfle

* fix failing tests

* refactor stats generation

* refactoring to work with marge v3

* update README and bump version
  • Loading branch information
fijijavis authored Sep 8, 2018
1 parent 4c392fe commit 6e60213
Show file tree
Hide file tree
Showing 37 changed files with 4,372 additions and 6,491 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
},
"globals": {
"browser": true
},
"env": {
"mocha": true
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ build/
screenshots/
phantom.log
wdio-mochawesome-report/
mochawesome-report/
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
language: node_js

node_js:
- 8.9.2
- 10.5.0

install:
- yarn --frozen-lockfile

script:
- npm run build
- npm run hub:start
- npm run test
- yarn test:unit
- yarn build
- yarn hub:start
- yarn test:func
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,19 @@ In summary...

* Add the package to your project
```shell
npm install --save mochawesome-report-generator@2.3.2
npm install --save mochawesome-report-generator
```

**NOTE** wdio-mochawesome-reporter is NOT compatible with the 3.x versions of the mochawesome-report-generator

* Add a script to your package.json to generate the report
```json
"scripts": {
"generateMochawesome":"marge path/to/results.json --reportTitle 'My Project Results'"
},
```
1) `path/to/results.json` = path and name of json file
2) `--reportTitle 'My Project Results' = unique report title
2) `--reportTitle 'My Project Results' = unique report title

## Version Compatibility
v1.x of ```wdio-mochawesome-reporter``` is compatible with ```2.3.2``` of ```mochawesome-report-generator```

v2.x of ```wdio-mochawesome-reporter``` is compatible with version ```3.1.3``` of ```mochawesome-report-generator```
122 changes: 0 additions & 122 deletions lib/TestResult.js

This file was deleted.

201 changes: 0 additions & 201 deletions lib/reporter.js

This file was deleted.

Loading

0 comments on commit 6e60213

Please sign in to comment.