@tractor-plugins/mocha-specs
v1.9.4-tractor-to-playwright.0
Published
tractor plugin for creating tests with Mocha
Downloads
20
Keywords
Readme
@tractor-plugins/mocha-specs
Plugin for tractor for creating E2E tests with Mocha.
How to install
npm install @tractor-plugins/mocha-specs --dev
Config
// tractor.conf.js
module.exports = {
// ...
mochaSpecs: {
},
// ...
};
For more information see here
Development
To set up development, just run yarn
from the root of the repository. You can then run the following commands from within the directory, or use lerna run
with --scope="@tractor-plugins/mocha-specs
.
Build
To build the whole package:
yarn build
Test
To run unit tests:
yarn test
yarn cover # with coverage
To run end-to-end tests:
yarn tractor:test # in one tab
yarn test:e2e # in another tab
To run end-to-end tests in CI mode:
yarn test:e2e:ci # handles the starting and killing of the application for testing
To start tractor
:
yarn tractor