cs-codex-dist-tests/Tests/CodexTests
benbierens 5896735884
set up swarm test
2024-10-11 10:30:07 +02:00
..
BasicTests More reliable test 2024-10-09 11:37:16 +02:00
DownloadConnectivityTests set up swarm test 2024-10-11 10:30:07 +02:00
Helpers Restores debug/peer 2024-03-26 10:31:49 +01:00
PeerDiscoveryTests Updates to new Codex image. Fixes tests 2024-06-21 11:29:05 +02:00
UtilityTests Removes marketaverages from discordbot and rewarderbot 2024-08-21 15:08:18 +02:00
AutoBootstrapDistTest.cs Updates autobootstrap fixture for parallel running. 2024-09-24 10:10:59 +02:00
CodexDistTest.cs Option to exclude blockReceivedEvents from transcript 2024-08-21 09:53:20 +02:00
CodexTests.csproj Bump to dotnet 8 2024-10-03 14:02:28 +02:00
MetricsAccessExtensions.cs adds block exchange tests. Updates namespaces 2023-10-09 16:59:52 +02:00
Parallelism.cs adds block exchange tests. Updates namespaces 2023-10-09 16:59:52 +02:00
README.md Overdue readme updates 2024-03-27 15:01:32 +01:00

README.md

Codex Tests

This is an NUnit test assembly that can be used with the standard dotnet test runner. For all its CLI options, run dotnet test --help.

Example tests

Running all the tests in the assembly can take a while. In order to check basic viability of your setup as well as the Codex image you're using, consider running only the example tests using the filter option: dotnet test --filter=Example.

Output

The test runner will produce a folder named CodexTestLogs with all the test logs. They are sorted by timestamp and reflect the names of the test fixtures and individual tests. When a test fails, the log file for that specific test will be postfixed with _FAILED. The same applies to the fixture log file. The STATUS files contain the test results in JSON, for easy machine reading.

Overrides

The following environment variables allow you to override specific aspects of the behaviour of the tests.

Variable Description
DEPLOYID A pod-label 'deployid' is added to each pod created during the tests. Use this to set the value of that label.
TESTID Similar to RUNID, except the label is 'testid'.
CODEXDOCKERIMAGE If set, this will be used instead of the default Codex docker image.

Using a local Codex repository

If you have a clone of the Codex git repository, and you want to run the tests using your local modifications, the following environment variable options are for you. Please note that any changes made in Codex's 'vendor' directory will be discarded during the build process.

Variable Description
CODEXREPOPATH Path to the Codex repository.
DOCKERUSERNAME Username of your Dockerhub account.
DOCKERPASSWORD Password OR access-token for your Dockerhub account. You can omit this variable to use your system-default account.
DOCKERTAG Optional. Tag used for docker image that will be built and pushed to the Dockerhub account. Random ID used when not set.