The collection runner is a component of Skopos that is responsible for executing multi-step tests. It uses Xstate as a state machine to orchestrate multi-step testing. The collection runner:
- Fetches data necessary for running the tests from a graphql server.
- Executes the tests using a state machine (Xstate).
- If any error occurs, it sends a notification using SNS (Simple Notification Service).
- Finally, it sends the tests data to the graphql server.
For development you will need Node.js environment and a running graphql server.
- Clone the repo:
git clone https://github.com/skopos-api-monitoring/skopos-collection-runner.git
- Navigate inside the folder:
cd skopos-collection-runner
- Run NPM install to generate necessary type files:
npm install
- Add an
.env
file with the following variables in the root folder:
GRAPHQL_URL
AWS_REGION
- Run the app:
npm start