- Only allow inline and style origins if browser-policy-content exists
- Allow usage of MochaJS 5.2.0
- Minimum
meteortesting:browser-tests
version is now1.0.0
, which runs Chrome with--headless
by default. If you don't use the Chrome driver, this will not be a breaking change.
- Optional code coverage support. Refer to "Run with code coverage" in the README
- Client tests will now properly fail when there are uncaught exceptions
- The
MOCHA_REPORTER
andCLIENT_TEST_REPORTER
environment variables are no respected even when you do not specify a browser driver. - The
browser-policy
package is now a weak dependency
- Fail with a message when mocha or a browser tests package does not properly pass the number of test failures
- Add browser policy to ensure that proper styling is always applied to test results shown in a browser
- Add colors for Nightmare
- Bump meteortesting:browser-tests dependency
Fix broken dependency reference
Fix client tests not running when TEST_SERVER=0 (thanks @hexsprite)
Changed name to meteortesting:mocha
and updated dependency name to meteortesting:browser-tests
Fix grep/invert options
Merged dispatch:mocha-browser
into this package. To replicate that package, run in watch mode without setting the TEST_BROWSER_DRIVER
environment variable.
- To run all tests with names that match a pattern, add the environment variable
MOCHA_GREP=your_string
. This will apply to both client and server tests. To run all tests EXCEPT those that match the pattern, additionally setMOCHA_INVERT=1
. - You can now skip running client tests with
TEST_CLIENT=0
or skip running server tests withTEST_SERVER=0
- Support for XUnit output to file
- Bump aldeed:browser-tests to fix PhantomJS testing and add support for showing Electron window
- Run tests in series by default with TEST_PARALLEL=1 option to start running client tests while server tests are still running (previous behavior). This is kind of a breaking change, but we decided that a minor version bump was sufficient since it does not break anything.
- Added support for running client tests in various browsers