Skip to content

rspack-contrib/rstest-ecosystem-ci

Repository files navigation

rstest-ecosystem-ci

This repository is used to run integration tests for Rstest ecosystem projects

via github workflow

scheduled

Workflows are sheduled to run automatically every day

manually

  • open workflow
  • click 'Run workflow' button on top right of the list
  • select suite to run in dropdown
  • start workflow

via shell script

  • clone this repo
  • run pnpm i
  • run pnpm test to run all suites
  • or pnpm test <suitename> to select a suite
  • or tsx ecosystem-ci.ts

You can pass --tag v2.8.0-beta.1, --branch somebranch or --commit abcd1234 option to select a specific rstest version to build. If you pass --release 2.7.13, rstest build will be skipped and rstest is fetched from the registry instead

The repositories are checked out into workspace subdirectory as shallow clones

cheat sheet

  • pnpm test -- --release nightly <suitename>: use nightly release to test rstest locally, using release can save time from building rstest locally
  • pnpm test -- --branch main --suite-branch update-rstest <suitename>: use update-rstest branch of suite to test main branch rstest

how to add a new integration test

  • check out the existing tests and add one yourself. Thanks to some utilities it is really easy
  • once you are confidente the suite works, add it to the lists of suites in the workflows

the current utilities focus on pnpm based projects. Consider switching to pnpm or contribute utilities for other pms

reporting results

on your own server

  • Go to Server settings > Integrations > Webhooks and click New Webhook
  • Give it a name, icon and a channel to post to
  • copy the webhook url
  • get in touch with admins of this repo so they can add the webhook

Credits

Thanks to:

which inspired the development of this project.

About

Rstest Ecosystem CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published