declarative-test-structure-generator
v1.1.1
Published
Declaration driven test structure generator
Downloads
42
Maintainers
Readme
declarative-test-structure-generator
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.