Skip to content

Commit

Permalink
release 6.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gruber committed Nov 1, 2020
1 parent cc81c05 commit 0b19efa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 103 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
104 changes: 3 additions & 101 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,48 @@

## [Unreleased]

## [6.2.0] - 2020-11-01
### Added

- Support mocha `--parallel` mode

### Changed

- Update dev dependencies
- Remove airbnb-extended `eslint` config. Use `eslint:recommended` instead
- Add `husky`, `lint-staged`, and `prettier`
- Format all files with `prettier`
- Remove travis-ci config

## [6.1.1] - 2020-04-27

### Fixed

- Restore inline-diff rendering [#312](https://github.com/adamgruber/mochawesome/issues/312)

## [6.1.0] - 2020-04-13

### Changed

- Bump mochawesome-report-generator to 5.1.0. No longer requires react or react-dom as peer deps

## [6.0.0] - 2020-04-10

### Changed

- **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

- Ensure a stats collector is always initialized
- Omit code snippets from JSON when `code` option is `false`

## [4.1.0] - 2019-08-06

### Added

- New `consoleReporter` option to allow specifying console reporter to use or disabling console reporter entirely [#99](https://github.com/adamgruber/mochawesome/issues/99)

## [4.0.1] - 2019-06-15

### Fixed

- Issue where using `addContext` inside a `before` or `after` hook would incorrectly apply context to the test [#284](https://github.com/adamgruber/mochawesome/issues/284)

## [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)
Expand All @@ -69,7 +54,6 @@
- Added new `meta` property to track info about the test run (useful for debugging)

### Changed

- Drop support for Node <8
- Require peer dependency of mocha >5
- Removed Babel dependency
Expand All @@ -78,145 +62,104 @@
- Updated various dependencies

## [3.1.2] - 2019-04-17

### Fixed

- Issue where a suite with skipped tests reports duration as `0`. [#276](https://github.com/adamgruber/mochawesome/issues/276)

## [3.1.1] - 2018-10-22

### Changed

- Switch from RegExp to state machine for stripping function start in `cleanCode` method. [#257](https://github.com/adamgruber/mochawesome/issues/257)

## [3.1.0] - 2018-10-17

### Changed

- Invert logic for getting test code by checking for `test.body` before `test.fn` inside `cleanTest` method [#252](https://github.com/adamgruber/mochawesome/issues/252)

## [3.0.3] - 2018-07-25

### Changed

- Reworked `cleanCode` regexes to handle more cases [#244](https://github.com/adamgruber/mochawesome/issues/244)

## [3.0.2] - 2018-01-25

### Changed

- Call `stripAnsi` for test/suite titles. [#223](https://github.com/adamgruber/mochawesome/pull/223) (@JoeTheFkingFrypan)

## [3.0.1] - 2017-12-26

### Fixed

- Updated RegExp in `cleanCode` method to handle arrow functions without braces. [#220](https://github.com/adamgruber/mochawesome/issues/220)

## [3.0.0] - 2017-11-30

This release is in tandem with and requires mochawesome-report-generator >= 3.0.0.

### Added

- New option: `html`. Allows user to specify whether or not to generate the HTML report. Defaults to `true`.

### Changed

- **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.

### Removed

- `enableTestCode` option was deprecated as of 2.0.3 and has been removed. Use `enableCode` instead.

## [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]

### Added

- Added `showHooks` option [#168](https://github.com/adamgruber/mochawesome/pull/168)
- Support mocha's `--inline-diffs` option [#167](https://github.com/adamgruber/mochawesome/pull/167)
- Normalize error objects for consistent display [#166](https://github.com/adamgruber/mochawesome/pull/166)
- Bumped mochawesome-report-generator dependency to 2.2.0

## [2.2.1]

### Changed

- Separated out before and after hooks
- Bumped mochawesome-report-generator dependency to 2.1.0

## [2.2.0]

### Changed

- Enable using `addContext` in `beforeEach` and `afterEach` test hooks
- Fix a bug where you could pass an object with empty title string to `addContext`
- Allow a context value of `undefined` to be displayed in the report

## [2.1.0]

### Added

- Added new options: `overwrite` and `timestamp`

## [2.0.5]

### Fixed

- Fix `UnhandledPromiseRejectionWarning` error when calling nonexistant `exit` function
- Limit files included in package

## [2.0.4]

### Changed

- Better handling of different coding styles in test code. [#98](https://github.com/adamgruber/mochawesome/issues/98)
- Separate utility functions from main reporter code for better test coverage
- Bump `mochawesome-report-generator` and `fs-extra` packages

## [2.0.3]

### Added

- Add `enableCode` option to be consistent with mochawesome-report-generator options
- Add `dev` option for testing

### 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]

### Fixed

- Fixed an issue where `reportFilename` was not propagated to `config` object
- Updated handling of `reportDir` option to allow relative paths
- Bumped mochawesome-report-generator dependency (requires 1.0.3 or higher)

## [2.0.0]

### Changed

- Moved report generation to mochawesome-report package
- Updated dependencies
- Switched from jshint to eslint
Expand All @@ -229,142 +172,101 @@ This release is in tandem with and requires mochawesome-report-generator >= 3.0.
- **Breaking** `reportName` option changed to `reportFilename`

## [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]

### Fixed

- Fixed build issues on Windows. See [#84](https://github.com/adamgruber/mochawesome/pull/84)

## [1.5.2]

### Changed

- Updated mocha peerDependency to allow any version

## [1.5.1]

### Added

- Added missing LICENSE.md file

## [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]

### 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]

### Fixed

- Removed extra slash in `@font-path` LESS variable. See [#53](https://github.com/adamgruber/mochawesome/issues/53)

## [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]

### 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]

### 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]

### Changed

- Update copyright in template

## [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]

### Added

- Added option to generate report with all assets inlined. See [#26](https://github.com/adamgruber/mochawesome/issues/26)

## [1.2.1]

### Fixed

- Reset `totalTestsRegistered` when reporter is run. [PR #21](https://github.com/adamgruber/mochawesome/pull/21)

## [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]

### Fixed

- Fixes [#10](https://github.com/adamgruber/mochawesome/issues/10)

## [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]

### Added

- Add support for options
- custom report directory
- custom report filename
- Enhancements to console output

## [1.0.5]

### Changed

- Bugfixes

## 1.0.0

### Added

- Redesigned report
- Mobile friendly
- Complete refactor of client-side script
- Custom builds of vendor scripts
- Custom font-icon set
- All fonts are now local to the report

[unreleased]: https://github.com/adamgruber/mochawesome/compare/6.1.1...HEAD
[Unreleased]: https://github.com/adamgruber/mochawesome/compare/6.2.0...HEAD
[6.2.0]: https://github.com/adamgruber/mochawesome/compare/6.1.1...6.2.0
[6.1.1]: https://github.com/adamgruber/mochawesome/compare/6.1.0...6.1.1
[6.1.0]: https://github.com/adamgruber/mochawesome/compare/6.0.0...6.1.0
[6.0.0]: https://github.com/adamgruber/mochawesome/compare/5.0.0...6.0.0
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mochawesome",
"version": "6.1.1",
"version": "6.2.0",
"description": "A gorgeous reporter for Mocha.js",
"scripts": {
"lint": "eslint src test*",
Expand Down

0 comments on commit 0b19efa

Please sign in to comment.