/mbt-workshop

Model-Based Testing Workshop

Primary LanguageJavaScriptMIT LicenseMIT

Model-Based Testing with @xstate/test and React Workshop

Welcome to the workshop! To get started, follow these instructions:

  1. Make sure you have Node and NPM installed.
  2. Run npm install or yarn install to install all dependencies.
  3. Run npm start to start the app.

Goal

The goal of this workshop is to demonstrate how to use @xstate/test with React to automate the generation of integration and end-to-end (E2E) tests of an example application.

End-to-end tests for Feedback app being run in a browser with Puppeteer

Running the Tests

To run the integration tests, run npm test. This will run the tests found in ./src/App.test.js.

To run the E2E tests, run npm run e2e. This will run the tests found in ./src/App.e2e.js.

Resources