Skip to content

ritza-co/e2e-testing-arazzo

Repository files navigation

End-to-end API testing with Arazzo and Deno

This project demonstrates how to use the Arazzo specification to generate end-to-end API tests with Deno.

Project structure

The project consists of three main packages:

  • arazzo-test-gen: Test generation engine that converts arazzo.yaml configurations into executable test cases
  • sdk: Generated API client SDK for interacting with the robot-building API
  • server: Test server implementation for running the tests

Prerequisites

  • Deno runtime
  • Node.js (for npm dependencies)

Getting started

  1. Clone the repository
  2. Install dependencies:
deno install

Available commands

# Run the test generator in watch mode
deno task dev

# Start the test server
deno task server

# Run the test suite
deno task test

Generate runtime expression parser

The runtime expression parser is used to evaluate expressions in the test cases. We need to convert ANBF expressions into a parser that can be used in Deno. The Peggy parser generator uses Node modules that are not compatible with Deno. To work around this, we generate the parser using Node.js.

To generate the parser, run the following commands:

cd packages/arazzo-test-gen
npm install
npm run gen

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •