stryker-mutator / stryker-mocha-runner Goto Github PK
View Code? Open in Web Editor NEWA plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework
A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework
I always get [2017-03-15 14:45:41.941] [TRACE] IsolatedTestRunnerAdapter - Firefox 52.0.0 (Mac OS X 10.12.0) ERROR TypeError: mocha.Suite is undefined at ___testHooksForStryker.js:8
Which may be an outcome of http://stackoverflow.com/questions/9795254/nodejs-mocha-suite-is-not-defined-error
From this issue with the core project.
My environment is setup using Babel, as all my source and tests are written in es2015.
To be able to run my tests using mocha, I run the following command:
mocha --require ignore-styles --require babel-core/register tests/ --recursive
The module babel-core/register
is required in order to transform the es2015 code. I use ignore-styles
because I am using SASS in my React components (which also needs to be compiled or it throws errors).
These root-level hooks, using the --require
option, are modules that are run first, before any tests are loaded (?).
I think that all that needs to be done is ensuring that these "root-level hooks" are the first files that are fed to Mocha when using it programmatically. I don't have much experience there, but that's what I've gathered from looking around a bit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.