GithubHelp home page GithubHelp logo

andywood873 / integration-tests Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethereum-optimism/integration-tests

0.0 0.0 0.0 1.56 MB

[Optimism] Service Integration Tests

License: MIT License

Shell 0.64% TypeScript 60.39% Solidity 38.29% JavaScript 0.68%

integration-tests's Introduction

Integration Tests

Typescript based integration test repo for Optimistic Ethereum.

Test suites are defined as a package in the packages directory. This repo can be ran on its own or as part of Optimism Integration.

Running with Optimism Integration

The Optimism Integration repo can be used to automatically configure and run the test suites found in this repo. See the README for usage information.

It is assumed that each test suite gets a fresh state when running this way. This means that the packages must not depend on each other.

Docker images found on Dockerhub are used when running the test suites this way.

Running locally

This repo can be ran locally against existing services but the configuration must be handled by the user. A .env file will be used to populate the configuration when then environment variable NODE_ENV is set to local.

There should be a yarn script for each package found in packages.

$ yarn test:x-domain
$ yarn test:tx-ingestion
$ yarn test:sequencer-interactions

The environment variables that are used by this repository can be found in the Config class in common.ts.

Environment Variable Description
L1_NODE_WEB3_URL L1 HTTP endpoint
L2_NODE_WEB3_URL L2 HTTP endpoint
MNEMONIC Mnemonic used to derive keys
ETH1_ADDRESS_RESOLVER_ADDRESS Address Resolver Address
SEQUENCER_PRIVATE_KEY Private key used by sequencer
DEPLOYER_PRIVATE_KEY Private key used by deployer
TARGET_GAS_LIMIT L2 gas limit
CHAIN_ID L2 Chain ID

The test suites must not run in parallel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.