@tracera/jest
v1.3.1
Published
Jest reporter and runtime for Tracera autotest
Maintainers
Readme
@tracera/jest
Jest reporter and runtime for Tracera autotest.
Requires Node.js ≥ 22.19 and Jest ≥ 29.
npm install @tracera/jestHow-to: Jest. Shared env / run mode: Autotest adapters.
Setup
// jest.config.js
module.exports = {
setupFilesAfterEnv: ['@tracera/jest/setup'],
reporters: ['default', '@tracera/jest/reporter'],
};Bind
Import test / expect from @jest/globals, and tracera / annotations / skip from this package. Prefer test(title, annotations(id, name, fn)); or tracera.testCase in the body.
Skip
Stock test.skip, or mid-body skip(reason) from this package. The reason becomes a result comment.
Steps
tracera.step(title, fn), @tracera.step("open {path}") on class methods, or tracera.step("…")(fn) wrap ({name} / {0} from args, or a title function). Stock beforeEach / afterEach → Setup / Teardown; beforeAll / afterAll are not reported.
Comments, errors, and attachments
tracera.comment / tracera.error / tracera.attachment — see Autotest adapters.
Parameterized
With test.each, put placeholders in the annotations name ({login}, {0}, … from the row). Retries: final attempt only; JEST_RETRY on Env when retry > 0.
