package
1.8.14
Repository: https://github.com/lasthyphen/dijetsnodego.git
Documentation: pkg.go.dev

# README

Avalanche e2e test suites

  • Works for any environments (e.g., local, test network).
  • Compiles to a single binary with customizable configurations.

Running tests

go install -v github.com/onsi/ginkgo/v2/[email protected]
ACK_GINKGO_RC=true ginkgo build ./tests/e2e
./tests/e2e/e2e.test --help

./tests/e2e/e2e.test \
--network-runner-grpc-endpoint="0.0.0.0:12340" \
--avalanchego-path=./build/avalanchego

See tests.e2e.sh for an example.

Adding tests

Define any flags/configurations in e2e.go.

Create a new package to implement feature-specific tests, or add tests to an existing package. For example:

.
└── e2e
    ├── README.md
    ├── e2e.go
    ├── e2e_test.go
    └── ping
        └── suites.go

e2e.go defines common configurations (e.g., network-runner client) for other test packages. ping/suites.go defines ping tests, annotated by [Ping], which can be selected by ./tests/e2e/e2e.test --ginkgo.focus "\[Local\] \[Ping\]".

# Packages

Implements tests for the banff network upgrade.
No description provided by the author
Implements ping tests, requires network-runner cluster.
Implements static handlers tests for avm and platformvm.
No description provided by the author

# Functions

DescribePChain annotates the tests for P-Chain.
DescribeXChain annotates the tests for X-Chain.

# Constants

Defines default tx confirmation timeout.
No description provided by the author
Enough for primary.NewWallet to fetch initial UTXOs.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Env is the global struct containing all we need to test.

# Structs

No description provided by the author

# Type aliases

No description provided by the author