declarative-test-structure-generator

Declaration driven test structure generator


Keywords
test, automation, generator, bdd, Jest, Jasmine, Mocha, TypeScript, js
License
MIT
Install
npm install declarative-test-structure-generator@1.1.1

Documentation

declarative-test-structure-generator

Build Status Coverage Status NPM version

declarative-test-structure-generator allows writing tests in an object definition style.

{
  'Object syntax': {
    tests: {
      'sample test 1': {
        test: () => {
          expect(1 + 2).toEqual(3);
        }
      },
      'skipped test': {
        skip: true,
        test: () => {
          expect(5 + 8).toEqual(13);
        }
      }
    }
  }
}

As of version 1, the API has been refactored to be standalone, it no longer packs any specific test framework. The API needs to be mapped using pre-built or custom mappers (see documentation).

Installation

npm install -D declarative-test-structure-generator

# or
yarn add -D declarative-test-structure-generator

TypeScript

As of version 1, the library package has been re-written in typescript and provides the type definitions.

Documentation

The documentation is available on the project's page

Issues

Please share your feedback and report the encountered issues on the project's issues page.