Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@tractor-plugins/mocha-specs

1.7.8 • Public • Published

@tractor-plugins/mocha-specs

Plugin for tractor for creating E2E tests with Mocha.

npm version

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

Keywords

none

Install

npm i @tractor-plugins/mocha-specs

DownloadsWeekly Downloads

35

Version

1.7.8

License

MIT

Unpacked Size

178 kB

Total Files

19

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar