From ab3f02d17ccac2cee858543670bac6ffe6de0ef2 Mon Sep 17 00:00:00 2001 From: Adam Gruber Date: Thu, 13 Apr 2017 13:45:42 -0400 Subject: [PATCH] dist and docs [ci skip] --- CHANGELOG.md | 56 ++++++++++++++++++++++++--------------------- LICENSE.md | 2 +- dist/mochawesome.js | 16 ++++++------- package.json | 9 +++++++- 4 files changed, 47 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b830849..3dbef4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,26 +1,30 @@ -#Changelog +# Changelog -###2.0.4 +### 2.0.5 +- Fix `UnhandledPromiseRejectionWarning` error when calling nonexistant `exit` function +- Limit files included in package + +### 2.0.4 - 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 +### 2.0.3 - Fixed [#126](https://github.com/adamgruber/mochawesome/issues/126) - Fix default options handling - Add `enableCode` option to be consistent with mochawesome-report-generator options - Deprecate `enableTestCode` option - Add `dev` option for testing -###2.0.2 +### 2.0.2 - Fixed [#111](https://github.com/adamgruber/mochawesome/issues/111) -###2.0.1 +### 2.0.1 - 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 +### 2.0.0 - Moved report generation to mochawesome-report package - Updated dependencies - Switched from jshint to eslint @@ -34,69 +38,69 @@ **Breaking Changes** - `reportName` option changed to `reportFilename` -###1.5.4 +### 1.5.4 - 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 build issues on Windows. See [#84](https://github.com/adamgruber/mochawesome/pull/84) -###1.5.2 +### 1.5.2 - Updated mocha peerDependency to allow any version -###1.5.1 +### 1.5.1 - Added missing LICENSE.md file -###1.5.0 +### 1.5.0 - 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 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 - Removed extra slash in `@font-path` LESS variable. See [#53](https://github.com/adamgruber/mochawesome/issues/53) -###1.3.4 +### 1.3.4 - 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 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 - 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 - Update copyright in template -###1.3.0 +### 1.3.0 - 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 option to generate report with all assets inlined. See [#26](https://github.com/adamgruber/mochawesome/issues/26) -###1.2.1 +### 1.2.1 - Reset `totalTestsRegistered` when reporter is run. [PR #21](https://github.com/adamgruber/mochawesome/pull/21) -###1.2.0 +### 1.2.0 - Enhancement: custom report title option. Closes [#11](https://github.com/adamgruber/mochawesome/issues/11) - Fixed indentation in code block and stack traces -###1.1.2 +### 1.1.2 - Fixes [#10](https://github.com/adamgruber/mochawesome/issues/10) -###1.1.1 +### 1.1.1 - 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)) - 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 - Add support for options - custom report directory - custom report filename - Enhancements to console output -###1.0.1 - 1.0.5 +### 1.0.1 - 1.0.5 - Bugfixes -###1.0.0 +### 1.0.0 - Redesigned report - Mobile friendly - Complete refactor of client-side script diff --git a/LICENSE.md b/LICENSE.md index b972ed4..13ceb39 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2015-2016 Adam Gruber +Copyright (c) 2015-2017 Adam Gruber Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dist/mochawesome.js b/dist/mochawesome.js index 968f508..5779dd6 100755 --- a/dist/mochawesome.js +++ b/dist/mochawesome.js @@ -37,24 +37,24 @@ var done = function () { case 7: log('Report HTML saved to ' + reportHtmlFile, null, config); - - exit(failures); - _context.next = 15; + _context.next = 13; break; - case 11: - _context.prev = 11; + case 10: + _context.prev = 10; _context.t0 = _context['catch'](1); log(_context.t0, 'error', config); - exit(failures); - case 15: + case 13: + exit && exit(failures); + + case 14: case 'end': return _context.stop(); } } - }, _callee, this, [[1, 11]]); + }, _callee, this, [[1, 10]]); })); return function done(_x, _x2, _x3, _x4) { diff --git a/package.json b/package.json index b5cfaa8..cc1968f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mochawesome", - "version": "2.0.4", + "version": "2.0.5", "description": "A Gorgeous HTML/CSS Reporter for Mocha.js", "scripts": { "lint": "eslint src test", @@ -24,6 +24,13 @@ ], "engine": "node >= 4", "main": "dist/mochawesome.js", + "files": [ + "LICENSE.md", + "README.md", + "CHANGELOG.md", + "addContext.js", + "dist" + ], "nyc": { "include": [ "src/*.js"