This repository provides simple examples of how to perform unit and UI testing using ScripterI/O.
- Unit tests: Demonstrates various assertions and async testing with ScripterI/O.
- API tests: Demonstrates how to perform API tests with ScripterI/O.
- UI tests: Shows how to use Playwright with ScripterI/O for browser automation.
- Clone the repository:
git clone https://github.com/your-username/scripterio-example.git cd scripterio-example
- Install dependencies:
npm install
- Install Playwright browsers:
npx playwright install chromium --with-deps
To run all tests:
npm run test
or:
npx scripterio --folder=tests
tests/api_tests.js
– API test examplestests/unit_tests.js
– Unit test examplestests/ui_tests.js
– UI test examples using Playwright