Skip to content

marc-ed-raffalli/declarative-test-structure-generator

Repository files navigation

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.

About

Declaration driven test structure generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published