https://github.com/scripterio-js/scripterio-example
Various examples of how to perform unit, API, and UI testing using ScripterI/O.
https://github.com/scripterio-js/scripterio-example
api-testing automation e2e-tests scripterio test-example ui-testing unit-testing
Last synced: 2 months ago
JSON representation
Various examples of how to perform unit, API, and UI testing using ScripterI/O.
- Host: GitHub
- URL: https://github.com/scripterio-js/scripterio-example
- Owner: scripterio-js
- License: mit
- Created: 2025-05-25T21:37:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T12:07:19.000Z (10 months ago)
- Last Synced: 2025-07-08T13:27:58.758Z (10 months ago)
- Topics: api-testing, automation, e2e-tests, scripterio, test-example, ui-testing, unit-testing
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scripterio-example
This repository provides simple examples of how to perform unit and UI testing using [ScripterI/O](https://www.npmjs.com/package/scripterio).
## Features
- **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.
## Getting Started
### Prerequisites
- [Node.js](https://nodejs.org/) (v18 or higher)
- [npm](https://www.npmjs.com/)
### Installation
1. Clone the repository:
```sh
git clone https://github.com/your-username/scripterio-example.git
cd scripterio-example
```
2. Install dependencies:
```sh
npm install
```
3. Install Playwright browsers:
```sh
npx playwright install chromium --with-deps
```
### Running Tests
To run all tests:
```sh
npm run test
```
or:
```sh
npx scripterio --folder=tests
```
## Project Structure
- `tests/api_tests.js` – API test examples
- `tests/unit_tests.js` – Unit test examples
- `tests/ui_tests.js` – UI test examples using Playwright