mochawesome
Advanced tools
Comparing version 5.0.0 to 6.0.0
152
CHANGELOG.md
# mochawesome changelog | ||
## [Unreleased] | ||
## [6.0.0] - 2020-04-10 | ||
### Changed | ||
- Drop support for node 8 | ||
- **BREAKING** Bump mochawesome-report-generator to 5.0.0 (Requires `react` and `react-dom` be installed separately) | ||
- Update all other dependencies | ||
## [5.0.0] - 2020-02-25 | ||
### Changed | ||
- **BREAKING** Drop support for node 8 | ||
- **BREAKING** Requies mocha 7+ | ||
### Fixed | ||
@@ -20,2 +28,11 @@ - Ensure a stats collector is always initialized | ||
## [4.0.0] - 2019-06-04 | ||
- **Breaking changes to JSON data structure:** | ||
- Renamed `allSuites` to `results` and made it an array of suites | ||
- Removed `isRoot` property from cleaned tests (only suites can be a root) | ||
- Removed class-related stats (`passPercentClass`, `pendingPercentClass`) | ||
- Added `uuid` to suites | ||
- Removed rounding of `passPercent` and `pendingPercent` | ||
- Removed `copyrightYear` property | ||
- Added new `meta` property to track info about the test run (useful for debugging) | ||
### Changed | ||
@@ -28,10 +45,2 @@ - Drop support for Node <8 | ||
- Updated various dependencies | ||
- **Breaking changes to JSON data structure** | ||
- Renamed `allSuites` to `results` and made it an array of suites | ||
- Removed `isRoot` property from cleaned tests (only suites can be a root) | ||
- Removed class-related stats (`passPercentClass`, `pendingPercentClass`) | ||
- Added `uuid` to suites | ||
- Removed rounding of `passPercent` and `pendingPercent` | ||
- Removed `copyrightYear` property | ||
- Added new `meta` property to track info about the test run (useful for debugging) | ||
@@ -64,3 +73,2 @@ ## [3.1.2] - 2019-04-17 | ||
This release is in tandem with and requires mochawesome-report-generator >= 3.0.0. | ||
### Added | ||
@@ -71,7 +79,4 @@ - New option: `html`. Allows user to specify whether or not to generate the HTML report. Defaults to `true`. | ||
- **BREAKING:** This release features a trimmed-down data output that removes properties that are not necessary for the report generation. This change will only affect things that consume the JSON output and does not affect usage of the reporter itself. | ||
- Suites are now cleaned by mapping over them instead of a breadth-first traversal | ||
- Options handling was overhauled and greatly simplified. The reporter will only concern itself with options directly related to the reporter. All other options are passed through to the report generator as-is. | ||
- Updated the `done` function to display better output when only one or no files have been generated. | ||
@@ -82,6 +87,8 @@ | ||
### [2.3.1] | ||
## [2.3.1] | ||
### Fixed | ||
- Fixes an issue where generator functions were not displayed properly [#188](https://github.com/adamgruber/mochawesome/pull/188) (@APshenkin) | ||
### [2.3.0] | ||
## [2.3.0] | ||
### Added | ||
- Added `showHooks` option [#168](https://github.com/adamgruber/mochawesome/pull/168) | ||
@@ -92,7 +99,9 @@ - Support mocha's `--inline-diffs` option [#167](https://github.com/adamgruber/mochawesome/pull/167) | ||
### [2.2.1] | ||
## [2.2.1] | ||
### Changed | ||
- Separated out before and after hooks | ||
- Bumped mochawesome-report-generator dependency to 2.1.0 | ||
### [2.2.0] | ||
## [2.2.0] | ||
### Changed | ||
- Enable using `addContext` in `beforeEach` and `afterEach` test hooks | ||
@@ -102,10 +111,13 @@ - Fix a bug where you could pass an object with empty title string to `addContext` | ||
### [2.1.0] | ||
## [2.1.0] | ||
### Added | ||
- Added new options: `overwrite` and `timestamp` | ||
### [2.0.5] | ||
## [2.0.5] | ||
### Fixed | ||
- Fix `UnhandledPromiseRejectionWarning` error when calling nonexistant `exit` function | ||
- Limit files included in package | ||
### [2.0.4] | ||
## [2.0.4] | ||
### Changed | ||
- Better handling of different coding styles in test code. [#98](https://github.com/adamgruber/mochawesome/issues/98) | ||
@@ -115,13 +127,20 @@ - Separate utility functions from main reporter code for better test coverage | ||
### [2.0.3] | ||
- Fixed [#126](https://github.com/adamgruber/mochawesome/issues/126) | ||
- Fix default options handling | ||
## [2.0.3] | ||
### Added | ||
- Add `enableCode` option to be consistent with mochawesome-report-generator options | ||
- Deprecate `enableTestCode` option | ||
- Add `dev` option for testing | ||
### [2.0.2] | ||
### Changed | ||
- Deprecate `enableTestCode` option | ||
### Fixed | ||
- Fixed [#126](https://github.com/adamgruber/mochawesome/issues/126) | ||
- Fix default options handling | ||
## [2.0.2] | ||
### Fixed | ||
- Fixed [#111](https://github.com/adamgruber/mochawesome/issues/111) | ||
### [2.0.1] | ||
## [2.0.1] | ||
### Fixed | ||
- Fixed an issue where `reportFilename` was not propagated to `config` object | ||
@@ -132,2 +151,3 @@ - Updated handling of `reportDir` option to allow relative paths | ||
## [2.0.0] | ||
### Changed | ||
- Moved report generation to mochawesome-report package | ||
@@ -142,69 +162,91 @@ - Updated dependencies | ||
- Added ability to display additional test context | ||
- **Breaking** `reportName` option changed to `reportFilename` | ||
**Breaking Changes** | ||
- `reportName` option changed to `reportFilename` | ||
### [1.5.4] | ||
## [1.5.4] | ||
### Changed | ||
- Run pending tests thru `cleanTest` function. Fixes possible scenario where a pending test with a large amount of text could cause node to run out of memory. See [#94](https://github.com/adamgruber/mochawesome/issues/94) | ||
### [1.5.3] | ||
## [1.5.3] | ||
### Fixed | ||
- Fixed build issues on Windows. See [#84](https://github.com/adamgruber/mochawesome/pull/84) | ||
### [1.5.2] | ||
## [1.5.2] | ||
### Changed | ||
- Updated mocha peerDependency to allow any version | ||
### [1.5.1] | ||
## [1.5.1] | ||
### Added | ||
- Added missing LICENSE.md file | ||
### [1.5.0] | ||
## [1.5.0] | ||
### Changed | ||
- Moved mocha to peerDependencies and devDependencies and fixed it to `~2`. See [#69](https://github.com/adamgruber/mochawesome/issues/69) | ||
### [1.4.0] | ||
## [1.4.0] | ||
### Added | ||
- Added slide-over navigation menu for quickly jumping to a test suite. See [#49](https://github.com/adamgruber/mochawesome/issues/49) | ||
### [1.3.5] | ||
## [1.3.5] | ||
### Fixed | ||
- Removed extra slash in `@font-path` LESS variable. See [#53](https://github.com/adamgruber/mochawesome/issues/53) | ||
### [1.3.4] | ||
## [1.3.4] | ||
### Added | ||
- Added option to auto open report. Also fixed an issue with boolean options. See [#44](https://github.com/adamgruber/mochawesome/issues/44) | ||
### [1.3.3] | ||
## [1.3.3] | ||
### Added | ||
- Added support for creating custom dir where the parent dir(s) may not exist yet. See [#40](https://github.com/adamgruber/mochawesome/issues/40) | ||
### [1.3.2] | ||
## [1.3.2] | ||
### Fixed | ||
- Removed `allHooks` array since it was not being used and could lead to an issue where node runs out of memory while rendering the template. See [#33](https://github.com/adamgruber/mochawesome/issues/33) | ||
### [1.3.1] | ||
## [1.3.1] | ||
### Changed | ||
- Update copyright in template | ||
### [1.3.0] | ||
## [1.3.0] | ||
### Fixed | ||
- Changes to support mocha 2.4.0 and later (fixes empty code blocks). See [#29](https://github.com/adamgruber/mochawesome/issues/29) | ||
### [1.2.2] | ||
## [1.2.2] | ||
### Added | ||
- Added option to generate report with all assets inlined. See [#26](https://github.com/adamgruber/mochawesome/issues/26) | ||
### [1.2.1] | ||
## [1.2.1] | ||
### Fixed | ||
- Reset `totalTestsRegistered` when reporter is run. [PR #21](https://github.com/adamgruber/mochawesome/pull/21) | ||
### [1.2.0] | ||
## [1.2.0] | ||
### Added | ||
- Enhancement: custom report title option. Closes [#11](https://github.com/adamgruber/mochawesome/issues/11) | ||
### Fixed | ||
- Fixed indentation in code block and stack traces | ||
### [1.1.2] | ||
## [1.1.2] | ||
### Fixed | ||
- Fixes [#10](https://github.com/adamgruber/mochawesome/issues/10) | ||
### [1.1.1] | ||
## [1.1.1] | ||
### Added | ||
- Add filter icon in summary for better visibility (Completely new idea and not at all in response to [this](https://github.com/adamgruber/mochawesome/issues/5)) | ||
### Changed | ||
- Change util.print to console.log due to [deprecation](https://github.com/joyent/node/blob/master/doc/api/util.markdown#user-content-utilprint) | ||
### [1.1.0] | ||
## [1.1.0] | ||
### Added | ||
- Add support for options | ||
- custom report directory | ||
- custom report filename | ||
- custom report directory | ||
- custom report filename | ||
- Enhancements to console output | ||
### 1.0.1 - 1.0.5 | ||
## [1.0.5] | ||
### Changed | ||
- Bugfixes | ||
## [1.0.0] | ||
## 1.0.0 | ||
### Added | ||
- Redesigned report | ||
@@ -217,3 +259,5 @@ - Mobile friendly | ||
[Unreleased]: https://github.com/adamgruber/mochawesome/compare/4.1.0...HEAD | ||
[Unreleased]: https://github.com/adamgruber/mochawesome/compare/6.0.0...HEAD | ||
[6.0.0]: https://github.com/adamgruber/mochawesome/compare/5.0.0...6.0.0 | ||
[5.0.0]: https://github.com/adamgruber/mochawesome/compare/4.1.0...5.0.0 | ||
[4.1.0]: https://github.com/adamgruber/mochawesome/compare/4.0.1...4.1.0 | ||
@@ -257,3 +301,3 @@ [4.0.1]: https://github.com/adamgruber/mochawesome/compare/4.0.0...4.0.1 | ||
[1.1.1]: https://github.com/adamgruber/mochawesome/compare/1.1.0...1.1.1 | ||
[1.1.0]: https://github.com/adamgruber/mochawesome/compare/1.0.0...1.1.0 | ||
[1.0.0]: https://github.com/adamgruber/mochawesome/compare/0.3.3...1.0.0 | ||
[1.1.0]: https://github.com/adamgruber/mochawesome/compare/1.0.5...1.1.0 | ||
[1.0.5]: https://github.com/adamgruber/mochawesome/compare/1.0.0...1.0.5 |
{ | ||
"name": "mochawesome", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "A gorgeous reporter for Mocha.js", | ||
@@ -49,3 +49,3 @@ "scripts": { | ||
"dependencies": { | ||
"chalk": "^3.0.0", | ||
"chalk": "^4.0.0", | ||
"diff": "^4.0.1", | ||
@@ -57,5 +57,5 @@ "json-stringify-safe": "^5.0.1", | ||
"lodash.isstring": "^4.0.1", | ||
"mochawesome-report-generator": "^4.1.0", | ||
"mochawesome-report-generator": "^5.0.0", | ||
"strip-ansi": "^6.0.0", | ||
"uuid": "^7.0.0" | ||
"uuid": "^7.0.3" | ||
}, | ||
@@ -66,12 +66,12 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"cross-env": "^7.0.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^6.5.1", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"mocha": ">=5", | ||
"nyc": "^15.0.0", | ||
"eslint-config-airbnb-base": "^14.1.0", | ||
"eslint-plugin-import": "^2.20.2", | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.1", | ||
"proxyquire": "^2.1.0", | ||
"should": "^13.2.3", | ||
"sinon": "^9.0.0" | ||
"sinon": "^9.0.2" | ||
} | ||
} |
mochawesome | ||
=========== | ||
[![npm](https://img.shields.io/npm/v/mochawesome.svg?style=flat-square)](http://www.npmjs.com/package/mochawesome) [![Build Status](https://img.shields.io/travis/adamgruber/mochawesome/master.svg?style=flat-square)](https://travis-ci.org/adamgruber/mochawesome) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/mochawesome/general) [![Code Climate](https://img.shields.io/codeclimate/coverage/adamgruber/mochawesome.svg?style=flat-square)](https://codeclimate.com/github/adamgruber/mochawesome) | ||
[![npm](https://img.shields.io/npm/v/mochawesome.svg?style=flat-square)](http://www.npmjs.com/package/mochawesome) ![Node.js CI](https://github.com/adamgruber/mochawesome/workflows/Node.js%20CI/badge.svg) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/mochawesome/general) | ||
@@ -25,5 +25,5 @@ Mochawesome is a custom reporter for use with the Javascript testing framework, [mocha][mocha]. It runs on Node.js (>=10) and works in conjunction with [mochawesome-report-generator][marge] to generate a standalone HTML/CSS report to help visualize your test runs. | ||
1. Add Mochawesome to your project: | ||
1. Add Mochawesome and React peer deps to your project: | ||
`npm install --save-dev mochawesome` | ||
`npm install --save-dev mochawesome react react-dom` | ||
@@ -30,0 +30,0 @@ 2. Tell mocha to use the Mochawesome reporter: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41134
+ Addedescape-html@1.0.3(transitive)
+ Addedmochawesome-report-generator@5.2.0(transitive)
- Removedchalk@3.0.0(transitive)
- Removedmochawesome-report-generator@4.1.0(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedscheduler@0.19.1(transitive)
Updatedchalk@^4.0.0
Updateduuid@^7.0.3