22
33[ ![ Ruff] ( https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json )] ( https://github.com/astral-sh/ruff )
44
5- > 📡 ** System and end-to-end (E2E) tests for ` cardano-node ` .**
5+ > 📡 ** System and end-to-end (E2E) tests for cardano-node.**
66
77📘 Check the [ documentation site] ( https://tests.cardano.intersectmbo.org ) for full usage guides, setup instructions, and details.
88
1313Run tests easily using GitHub Actions:
1414
15151 . ** Fork** this repository.
16+
16171 . Enable GitHub Actions in your fork:
1718
1819 * Go to ` Settings ` ➝ ` Actions ` ➝ ` General ` ➝ ` Actions permissions `
1920 * Check ✅ ` Allow all actions and reusable workflows `
21+
20221 . Navigate to the ` Actions ` tab, then choose:
2123
2224 * ` 01 Regression tests ` , or
2325 * ` 02 Regression tests with db-sync `
26+
24271 . Click ` Run workflow ` to start testing.
2528
2629---
2730
2831## 🛠️ Running Tests Locally with Nix
2932
30331 . Install and configure Nix using the [ official guide] ( https://github.com/input-output-hk/cardano-node-wiki/wiki/building-the-node-using-nix ) .
34+
31351 . Clone this repository.
36+
32371 . Run the test suite:
3338
34- ``` sh
35- ./.github/regression.sh
36- ```
39+ ``` sh
40+ ./.github/regression.sh
41+ ```
3742
3843> ℹ️ ** NOTE:** Using ` CI_BYRON_CLUSTER ` will cause the local cluster to progress from Byron ➝ Conway, which takes approximately 40 minutes.
3944
@@ -42,17 +47,18 @@ Run tests easily using GitHub Actions:
4247## 🧪 Running Individual Tests with Custom Binaries
4348
44491 . Add your custom ` cardano-cli ` / ` cardano-node ` binaries to the ` .bin ` directory.
50+
45511 . Run a specific test:
4652
47- ``` sh
48- TEST_THREADS=0 CLUSTERS_COUNT=1 PYTEST_ARGS=" -k 'test_minting_and_burning_sign[asset_name-build_raw-submit_cli]'" ./.github/regression.sh
49- ```
53+ ``` sh
54+ TEST_THREADS=0 CLUSTERS_COUNT=1 PYTEST_ARGS=" -k 'test_minting_and_burning_sign[asset_name-build_raw-submit_cli]'" ./.github/regression.sh
55+ ```
5056
51571 . Enable full CLI command logging:
5258
53- ``` sh
54- PYTEST_ARGS=" ... --log-level=debug" ./.github/regression.sh
55- ```
59+ ``` sh
60+ PYTEST_ARGS=" ... --log-level=debug" ./.github/regression.sh
61+ ```
5662
57631 . Clean up by removing binaries from ` .bin ` after tests complete.
5864
@@ -64,35 +70,35 @@ For workflows requiring repeated test runs on a persistent cluster:
6470
65711 . Start a Nix shell:
6672
67- ``` sh
68- nix flake update --accept-flake-config --override-input cardano-node github:IntersectMBO/cardano-node/master
69- nix develop --accept-flake-config
70- ```
73+ ``` sh
74+ nix flake update --accept-flake-config --override-input cardano-node github:IntersectMBO/cardano-node/master
75+ nix develop --accept-flake-config
76+ ```
7177
72781 . Prepare the test environment:
7379
74- ``` sh
75- source ./prepare_test_env.sh conway
76- ```
80+ ``` sh
81+ source ./prepare_test_env.sh conway
82+ ```
7783
78841 . Launch the cluster:
7985
80- ``` sh
81- ./dev_workdir/conway_fast/start-cluster
82- ```
86+ ``` sh
87+ ./dev_workdir/conway_fast/start-cluster
88+ ```
8389
84901 . Run your tests:
8591
86- ``` sh
87- pytest -s -k test_minting_one_token cardano_node_tests/tests/tests_plutus
88- pytest -s --log-level=debug -k test_minting_one_token cardano_node_tests/tests/tests_plutus
89- ```
92+ ``` sh
93+ pytest -s -k test_minting_one_token cardano_node_tests/tests/tests_plutus
94+ pytest -s --log-level=debug -k test_minting_one_token cardano_node_tests/tests/tests_plutus
95+ ```
9096
91971 . Stop the cluster:
9298
93- ``` sh
94- ./dev_workdir/conway_fast/stop-cluster
95- ```
99+ ``` sh
100+ ./dev_workdir/conway_fast/stop-cluster
101+ ```
96102
97103To reuse the same environment in another shell:
98104
@@ -240,5 +246,3 @@ make doc
240246* Follow the [ Google Python Style Guide] ( https://google.github.io/styleguide/pyguide.html ) .
241247* Use [ Ruff] ( https://github.com/astral-sh/ruff ) (via ` pre-commit ` ) for formatting.
242248* See [ CONTRIBUTING.md] ( https://github.com/IntersectMBO/cardano-node-tests/blob/master/CONTRIBUTING.md ) for full guidelines.
243-
244- ---
0 commit comments