package
0.7.8
Repository: https://github.com/darcys22/godbledger.git
Documentation: pkg.go.dev

# README

End to End/Integration Tests for GoDBLedger

This folder describes the integration tests designed for GoDBLedger.

In this /tests folder there is a /tests/evaluators folder containing a single file for each test. The endtoend_test.go test will spin up a GoDBLedger instance for each test and query it as described in the evaluators file.

The endtoend_test.go file has been built with +build integration so will be ignored by go test unless the tag for "integration" is added

go test -tags=integration

alternatively calling the make target from the root directory already includes the tag

make test

To add more tests one should add a new file with the test into the evaluators directory. In the file should be an exportable Evaluator variable which is then added to the evaluators array in endtoend_test.go.

# Packages

Package components defines utilities to spin up actual beacon node and validator processes as needed by end to end tests.
Package helpers defines helper functions to peer into end to end processes and kill processes as needed.
Package params defines all custom parameter configurations for running end to end tests.
Package types includes important structs used by end to end tests, such as a configuration type, an evaluator type, and more.