@testdeck/mocha
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

Get it on NPM License Build Status Coverage Quality Gate Status Issues Pull Requests

@testdeck/mocha

Mocha tests in OOP style!

import { suite, test } from "@testdeck/mocha";
import { expect } from 'chai';

@suite
class Hello {

  @test
  world() {
    expect(false).to.be.true;
  }
}

With support for

  • test suite inheritance by either extension or mixins
  • individual naming of both suites and tests
  • parameterised tests

and more...

If you are looking for other test framework support, please see the following packages

Installation

npm install --save-dev @types/mocha mocha @testdeck/mocha

Additional dependencies need to be installed, unless you use the seed below or follow the instructions in the setup guide for which a link has been provided below.

Getting Started

To get you started, a seed has been provided that can help you with setting up your project.

git clone https://github.com/testdeck/testdeck-mocha-seed.git

Additional Information

You can find a lot more information in the official documentation, especially in the setup guide.

Package Sidebar

Install

npm i @testdeck/mocha

Weekly Downloads

10,215

Version

0.3.3

License

Apache-2.0

Unpacked Size

30.4 kB

Total Files

8

Last publish

Collaborators

  • pana-cc
  • silkentrance