Example of tests with CodeceptJS framework and adapter for Test IT
- Install node.js version 16+
- Clone this repository
git clone https://github.com/testit-tms/js-examples.git && cd codecept - Install dependencies
npm install - Configure the tests to run in testit-adapter.config.json file. How to configure?
- Run tests via
npx codeceptjs run --stepsto upload the results to TMS
- tests/ – test files
- attachments/ - attachment files for tests
- annotations_test.ts – simple test examples with annotations testit-adapter-codecept
- methods_test.ts – simple test examples with methods testit-adapter-codecept
- codecept.conf.ts - configuration file of CodeceptJS
- package.json - JSON representation of a NPM project
- steps.d.ts - file of types for custom helper or page object
- testit-adapter.config.json - configuration file where specified base options for tests