Functions
Testomat functions gives you more flexibility in reporting and make your reports more powerful.
Usage example
Or import only required functions:
After you import and invoke testomat
, autocompletion will help you to find the right function.
Available functions
- artifact
- log
- step
- meta (key:value) (in progress)
Artifact
Adds file to the test report (text, image, video, etc.)
Artifacts, generated by testrunners (like screenshots/videos by Playwright) are uploaded automatically, you donβt need to add them manually using artifact function. Just setup S3 bucket.
Log
Similar to step function, intended to log any additional info to the test report (including text, arrays, complex objects).
Usage examples:
Step
Adds step to the test report. Step is a human-readable description of the test action. It is used to describe the test flow. This function is similar to log function, but looks differently in the report.
Supported frameworks:
- π’ CodeceptJS
- π’ Cucumber
- π’ Jest
- π’ Mocha
- π’ Playwright