aot-test-generators
Generate test suites for checks that already happened at build-time
Install
npm install --save aot-test-generators
Usage
const testGenerators = ; let test = testGeneratorsqunit; console;// QUnit.test('test-name', function(assert) {// assert.expect(1);// assert.ok(true, 'assertion-message');// });
aot-test-generators
currently supports:
API
test(testName, passed, [assertionMessage])
Generates code for passing and failing tests.
testName
Type: string
Name of the test.
passed
Type: boolean
true
generates a passing test, false
generates a failing test.
assertionMessage
Type: string
Default: same as testName
Assertion message inside of the test.
suiteHeader(suiteName)
Generates test suite header code.
suiteName
Type: string
Name of the test suite.
suiteFooter()
Generates test suite footer code (if necessary).
License
This project is licensed under the Apache License 2.0.