Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
af9e297
Fix missing methods/globals in IE7, IE8 environments
ndhoule May 16, 2016
39ba880
fix toISOString and utils tests for IE7
boneskull Jun 10, 2016
d7c459b
add json3 to json-cov and json-stream reporters
boneskull Jun 26, 2016
6c68aff
Update glob to 4.0.6
RobLoach Oct 19, 2014
84b03b9
Require npm version which supports `^` specifier
shinnn Oct 29, 2014
e8db3da
Fail when test resolution method is overspecified
jugglinmike Aug 22, 2014
b52b175
Throw an exception when timeout too large.
callumacrae Apr 13, 2015
6126e38
feature(mocha/grep): improve grep - issue #808
a8m Jul 18, 2015
2cacadd
fix test for my sneaky change to timeout()
boneskull Jul 1, 2016
ffdedc2
drop v0.8x support
boneskull Jul 1, 2016
f50ad28
upgrade all possible deps; use pug instead of jade
boneskull Jul 2, 2016
e0d316d
rename *.jade => .pug
boneskull Jul 2, 2016
82ad427
fail fast in CI; try to cache phantom binary; enable artifact addon
boneskull Jul 2, 2016
eb34499
remove unneeded os-tmpdir
boneskull Jul 2, 2016
1a260c1
generate build artifacts from bundled test files
boneskull Jul 2, 2016
f8d55f9
downgrade diff for ES3
boneskull Jul 2, 2016
a8e63d1
Use more visually-distinctive characters on the 'dot' reporter
ELLIOTTCABLE Dec 9, 2015
dedf03d
fix integration tests with changes to dot reporter
boneskull Jul 2, 2016
f9767a3
remove dupe mkdirp dep
boneskull Jul 2, 2016
29a0de2
upgrade diff back to original
boneskull Jul 2, 2016
442b6a0
fix(Suite/Test): untitled suite/test-case #1632
a8m Nov 12, 2015
dc6ca3f
fixup merge for pr #1809
boneskull Jul 2, 2016
59b03a7
fix wonky lookupFiles test; closes #2347
boneskull Jul 3, 2016
8a75434
feat(runner): fix '.only()' exclusive feature, #1481
a8m Mar 9, 2016
5f17224
fix .PHONY [ci skip]
boneskull Jul 3, 2016
c2de45b
update travis.yml and karma to upload karma bundles to S3 for debugging
boneskull Jul 3, 2016
de4c189
downgrade lodash.create to v3 for ES3
boneskull Jul 3, 2016
fc49036
split up matrix a bit
boneskull Jul 3, 2016
4748743
caching doesn't work; forget it
boneskull Jul 3, 2016
f482d08
ensure bundle dir is set before trying to write somewhere in Karma
boneskull Jul 3, 2016
7543b3f
increase timeout in test/color.js for AppVeyor
boneskull Jul 3, 2016
9af9c51
increase integration test timeouts across-the-board for AppVeyor
boneskull Jul 3, 2016
3c897d5
build for prerelease
boneskull Jul 3, 2016
2931408
Release v3.0.0-0
boneskull Jul 3, 2016
38aff34
drop component support; closes #2269
boneskull Jul 3, 2016
1675bf9
revert changes that broke a regression test fixture
boneskull Jul 5, 2016
42126f6
update contributors [ci skip]
boneskull Jul 5, 2016
efe09cb
add production "sanity" check to Travis CI
boneskull Jul 5, 2016
749cbd3
update woefully out-of-date bower.json [ci skip]
boneskull Jul 5, 2016
b47835b
drop jsoncov/htmlcov reporters; closes #2356
boneskull Jul 7, 2016
4fd6cad
fix some modules which should be ignored in karma config
boneskull Jul 7, 2016
d21a92d
remove redundant "licenses" field and deprecated "engineStrict" from …
boneskull Jul 7, 2016
a90f9b5
change repo url to https scheme instead of git
boneskull Jul 7, 2016
8cb95cd
rebuild
boneskull Jul 8, 2016
fc99122
add missing "homepage" to package.json [ci skip]
boneskull Jul 8, 2016
2d3e1cf
Release v3.0.0-1
boneskull Jul 8, 2016
3f23179
Merge branch 'master' into v3.0.0
boneskull Jul 9, 2016
fa673f1
remove references to test-outputs/ dir, which is unused
boneskull Jul 9, 2016
c7728eb
fix mocha.js target
boneskull Jul 9, 2016
dd3357d
display executed commands in Makefile for debugging
boneskull Jul 9, 2016
93e3c93
wip CHANGELOG update
boneskull Jul 9, 2016
32b1f97
tweak wording on "overspecification" exception
boneskull Jul 11, 2016
56c6349
Merge commit '185c0d902e272216232630fe4e2577268456dd9a' into v3.0.0
boneskull Jul 11, 2016
27c3b44
added changes to CHANGELOG.md [ci skip]
boneskull Jul 11, 2016
37fa564
copy to-iso-string; closes #2378
boneskull Jul 21, 2016
a271079
suppress warning about .eslintignore when running ESLint
boneskull Jul 21, 2016
f2eff77
fix bad reference to to-iso-string in test
boneskull Jul 21, 2016
f69f368
markdown fixes for CHANGELOG.md [ci skip]
boneskull Jul 22, 2016
fb6ef8f
Upgrade eslint package to 2.13 version (#2389)
anthony-redFox Jul 22, 2016
9ea2011
let child suites run if parent is exclusive; closes #2378 (#2387)
boneskull Jul 26, 2016
3bdb8b3
Merge branch 'master' into v3.0.0
boneskull Jul 26, 2016
5ae04f5
update CHANGELOG [ci skip]
boneskull Jul 26, 2016
30baf46
add browser-stdout to dependencies
boneskull Jul 26, 2016
375c630
rebuild mocha.js
boneskull Jul 26, 2016
91ba352
Release v3.0.0-2
boneskull Jul 26, 2016
2ceb9ff
fix broken/wrong URLs in CHANGELOG.md [ci skip]
boneskull Jul 27, 2016
63c552a
add bower.json to published package for npmcdn support [ci skip]
boneskull Jul 27, 2016
755d63d
fix incorrect executable name with new version of commander
boneskull Jul 27, 2016
458b2c8
add "logo" field to package.json [ci skip]
boneskull Jul 27, 2016
cc458c1
fixed typo in mocha.css introduced by 185c0d902e272216232630fe4e25772…
boneskull Aug 1, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/to-iso-string/
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,11 @@ rules:
radix: 2
semi: [2, always]
semi-spacing: [2, { before: false, after: true }]
space-after-keywords: [2, always]
space-before-blocks: [2, always]
space-before-function-paren: [2, never]
space-in-parens: [2, never]
space-infix-ops: 2
space-return-throw-case: 2
keyword-spacing: 2
space-unary-ops: [2, { words: true, nonwords: false }]
spaced-comment: [2, always, { exceptions: ['!'] }]
strict: [0, global] # TODO: Change to error
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
coverage.html
lib-cov
.DS_Store
node_modules
test-outputs
*.sock
testing
_mocha.js
Expand All @@ -15,3 +12,4 @@ lib/browser/diff.js
*.diff
npm-debug.log*
.envrc
.karma/
28 changes: 19 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ dist: trusty
language: node_js

env:
global: PHANTOMJS_CDNURL='https://cnpmjs.org/downloads'
global:
# phantomjs hosts binaries @ bitbucket, which has fairly restrictive
# rate-limiting. pull it from this sketchy site in China instead.
- PHANTOMJS_CDNURL='https://cnpmjs.org/downloads'
# we're going to use s3 to temporarily store Karma test bundles for debugging
- AWS_ACCESS_KEY_ID=AKIAJ3QQTLQXWXYJ6PTA
- secure: k4musDC734E1NFOWaY5qb/l0B9K1cfusFTvMZFayTMs5ubKjeNYCgct2sDSvO5tO7Un935I0sYOOSRPvANPhs8dP1a/8/x0PnwIfnpoCFQCCaI0bWnIQj7nOZ2TaEB/fngZCerCFpNDlzqI6BmaR+XoMvA74v2YD/vVXnzvXNQk=

matrix:
fast_finish: true
include:
- node_js: '6'
env: TARGET='clean lint test-node test-browser'
env: TARGET=test-node
- node_js: '5'
env: TARGET=test-node
- node_js: '4'
Expand All @@ -27,15 +34,18 @@ matrix:
env: TARGET=test-node
- node_js: '0.10'
env: TARGET=test-node
- node_js: '0.8'
env: TARGET=test-node
- node_js: '6'
env: TARGET=lint
- node_js: '6'
env: TARGET=test-browser S3=1

before_install: scripts/travis-before-install.sh

before_script: scripts/travis-before-script.sh

before_install:
# node 0.8 won't install our dev deps with an out-of-box npm;
# this upgrades it
- node ./scripts/upgrade-npm.js
script: make $TARGET

script: travis_retry make $TARGET
after_script: scripts/travis-after-script.sh

notifications:
urls:
Expand Down
100 changes: 100 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,103 @@
# 3.0.0 / 2016-xx-xx

## :boom: Breaking Changes

- :warning: Due to the increasing difficulty of applying security patches made within its dependency tree, as well as looming incompatibilities with Node.js v7.0, **Mocha no longer supports Node.js v0.8**.
- :warning: **Mocha may no longer be installed by versions of `npm` less than `1.4.0`.** Previously, this requirement only affected Mocha's development dependencies. In short, this allows Mocha to depend on packages which have dependencies fixed to major versions (`^`).
- `.only()` is no longer "fuzzy", can be used multiple times, and generally just works like you think it should. :joy:
- To avoid common bugs, when a test injects a callback function (suggesting asynchronous execution), calls it, *and* returns a `Promise`, Mocha will now throw an exception:

```js
const assert = require('assert');

it('should complete this test', function (done) {
return new Promise(function (resolve) {
assert.ok(true);
resolve();
})
.then(done);
});
```

The above test will fail with `Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.`.
- When a test timeout value *greater than* `2147483648` is specified in any context (`--timeout`, `mocha.setup()`, per-suite, per-test, etc.), the timeout will be *disabled* and the test(s) will be allowed to run indefinitely. This is equivalent to specifying a timeout value of `0`. See [MDN](https://developer.mozilla.org/docs/Web/API/WindowTimers/setTimeout#Maximum_delay_value) for reasoning.
- The `dot` reporter now uses more visually distinctive characters when indicating "pending" and "failed" tests.
- Mocha no longer supports [component](https://www.npmjs.com/package/component).
- The long-forsaken `HTMLCov` and `JSONCov` reporters--and any relationship to the "node-jscoverage" project--have been removed.

## :tada: Enhancements

- [#808]: Allow regular-expression-like strings in `--grep` and browser's `grep` querystring; enables flags such as `i` for case-insensitive matches and `u` for unicode. ([@a8m])
- [#2000]: Use distinctive characters in `dot` reporter; `,` will denote a "pending" test and `!` will denote a "failing" test. ([@elliottcable])
- [#1632]: Throw a useful exception when a suite or test lacks a title. ([@a8m])
- [#1481]: Better `.only()` behavior. ([@a8m])
- [#2334]: Allow `this.skip()` in async tests and hooks. ([@boneskull])
- [#1320]: Throw a useful exception when test resolution method is overspecified. ([@jugglinmike])
- [#2364]: Support `--preserve-symlinks`. ([@rosswarren])

## :bug: Bug Fixes

- [#2259]: Restore ES3 compatibility. Specifically, support an environment lacking `Date.prototype.toISOString()`, `JSON`, or has a non-standard implementation of `JSON`. ([@ndhoule], [@boneskull])
- [#2286]: Fix `after()` failing to execute if test skipped using `this.skip()` in `beforeEach()`; no longer marks the entire suite as "pending". ([@dasilvacontin], [@boneskull])
- [#2208]: Fix function name display in `markdown` and `html` (browser) reporters. ([@ScottFreeCode])
- [#2299]: Fix progress bar in `html` (browser) reporter. ([@AviVahl])
- [#2307]: Fix `doc` reporter crashing when test fails. ([@jleyba])
- [#2323]: Ensure browser entry point (`browser-entry.js`) is published to npm (for use with bundlers). ([@boneskull])
- [#2310]: Ensure custom reporter with an absolute path works in Windows. ([@silentcloud])
- [#2311]: Fix problem wherein calling `this.slow()` without a value would blast any previously set value. ([@boneskull])
- [#1813]: Ensure Mocha's own test suite will run in Windows. ([@tswaters], [@TimothyGu], [@boneskull])
- [#2317]: Ensure all interfaces are displayed in `--help` on CLI. ([@ScottFreeCode])
- [#1644]: Don't exhibit undefined behavior when calling `this.timeout()` with very large values ([@callumacrae], [@boneskull])
- [#2361]: Don't truncate name of thrown anonymous exception. ([@boneskull])
- [#2367]: Fix invalid CSS. ([@bensontrent])

## :nut_and_bolt: Other

- Upgrade production dependencies to address security advisories (and because now we can): `glob`, `commander`, `escape-string-regexp`,
and `supports-color`. ([@boneskull], [@RobLoach])
- Add Windows to CI. ([@boneskull], [@TimothyGu])
- Ensure appropriate `engines` field in `package.json`. ([@shinnn], [@boneskull])
- [#2348]: Upgrade ESLint to v2 ([@anthony-redfox])

We :heart: our [backers and sponsors](https://opencollective.com/mochajs)!

:shipit:

[#2348]: https://github.com/mochajs/mocha/issues/2348
[#808]: https://github.com/mochajs/mocha/issues/808
[#2361]: https://github.com/mochajs/mocha/pull/2361
[#2367]: https://github.com/mochajs/mocha/pull/2367
[#2364]: https://github.com/mochajs/mocha/pull/2364
[#1320]: https://github.com/mochajs/mocha/pull/1320
[#2307]: https://github.com/mochajs/mocha/pull/2307
[#2259]: https://github.com/mochajs/mocha/pull/2259
[#2208]: https://github.com/mochajs/mocha/pull/2208
[#2299]: https://github.com/mochajs/mocha/pull/2299
[#2286]: https://github.com/mochajs/mocha/issues/2286
[#1644]: https://github.com/mochajs/mocha/issues/1644
[#2310]: https://github.com/mochajs/mocha/issues/2310
[#2311]: https://github.com/mochajs/mocha/issues/2311
[#2323]: https://github.com/mochajs/mocha/issues/2323
[#2000]: https://github.com/mochajs/mocha/pull/2000
[#1632]: https://github.com/mochajs/mocha/issues/1632
[#1813]: https://github.com/mochajs/mocha/issues/1813
[#2334]: https://github.com/mochajs/mocha/issues/2334
[#2317]: https://github.com/mochajs/mocha/issues/2317
[#1481]: https://github.com/mochajs/mocha/issues/1481
[@elliottcable]: https://github.com/elliottcable
[@RobLoach]: https://github.com/robloach
[@AviVahl]: https://github.com/avivahl
[@silentcloud]: https://github.com/silentcloud
[@tswaters]: https://github.com/tswaters
[@jleyba]: https://github.com/jleyba
[@TimothyGu]: https://github.com/timothygu
[@callumacrae]: https://github.com/callumacrae
[@shinnn]: https://github.com/shinnn
[@bensontrent]: https://github.com/bensontrent
[@jugglinmike]: https://github.com/jugglinmike
[@rosswarren]: https://github.com/rosswarren
[@anthony-redfox]: https://github.com/anthony-redfox

# 2.5.3 / 2016-05-25

- [#2112] - Fix HTML reporter regression causing duplicate error output ([@danielstjules] via 6d24063)
Expand Down
Loading