Skip to content

Integration tests to be run against the combined functionality of the Optimism go-ethereum fork & optimism-monorepo

License

Notifications You must be signed in to change notification settings

isabella232/optimistic-rollup-integration-tests

 
 

Repository files navigation

Integration Tests

Tests can be added to packages/integration-tests. These tests are built into a Docker container and ran with docker-compose along with the rest of the stack.

Running in CI

When this runs in CI, it references the latest images in ECR for:

  • Postgres
  • Rollup Services
  • L2 Geth
  • Ganache CLI (for simulating L1)

Running locally

This repo can be ran locally against Docker images built from arbitrary git refs. scripts/test.sh will autotmatically build images that don't already exist and run them as part of the integration test suite.

$ ./scripts/test.sh
Build docker images and test using git branches.

CLI Arguments:
  -m|--microservices   - microservices branch
  -p|--postgres        - postgres branch
  -g|--gethl2          - gethl2 branch
  -l|--logs            - grep -E log filter

Default values for branches are master.
Will rebuild if new commits to a branch are detected.


For filtering logs with -l, use the | to delimit names of services.
Possible services are geth_l2, postgres, l1_chain, integration_tests.
Example:
$ ./scripts/test.sh -l 'geth_l2|integration_tests'

Example:
$ ./scripts/test.sh -p master -m new-feature-x -g new-feature-y

About

Integration tests to be run against the combined functionality of the Optimism go-ethereum fork & optimism-monorepo

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 70.7%
  • TypeScript 28.0%
  • Dockerfile 1.3%