op_e2e

package
v1.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 6 Imported by: 4

README

op-e2e

The end to end tests in this repo depend on genesis state that is created with the bedrock-devnet package. To create this state, run the following commands from the root of the repository:

make install-geth
make cannon-prestate
make devnet-allocs

This will leave artifacts in the .devnet directory that will be read into op-e2e at runtime. The default deploy configuration used for starting all op-e2e based tests can be found in packages/contracts-bedrock/deploy-config/devnetL1.json. There are some values that are safe to change in memory in op-e2e at runtime, but others cannot be changed or else it will result in broken tests. Any changes to devnetL1.json should result in rebuilding the .devnet artifacts before the new values will be present in the op-e2e tests.

Running tests

Consult the Makefile in this directory. Run, e.g.:

make test-http
Troubleshooting

If you encounter errors:

  • ensure you have the latest version of foundry installed: just update-foundry
  • try deleting the packages/contracts-bedrock/forge-artifacts directory
  • try forge clean && rm -rf lib && forge install within the packages/contracts-bedrock directory

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitParallel added in v1.0.5

func InitParallel(t e2eutils.TestingBase, args ...func(t e2eutils.TestingBase))

func IsSlow added in v1.9.5

func IsSlow(t e2eutils.TestingBase)

IsSlow indicates that the test is too expensive to run on the main CI workflow

func RunMain added in v1.9.3

func RunMain(m *testing.M)

func UsesCannon added in v1.4.2

func UsesCannon(t e2eutils.TestingBase)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL