You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ We welcome contributions via pull requests! This section will guide you through
99
99
100
100
7. **For EVM Tests**: Review the cases in the [EIP checklist template](./docs/writing_tests/checklist_templates/eip_testing_checklist_template.md).
101
101
102
-
8. **For Porting Tests**: If you're porting tests from ethereum/tests, see the [porting guide](https://eest.ethereum.org/main/dev/porting_legacy_tests) for coverage analysis and using `--skip-coverage-missed-reason` when needed.
102
+
8. **For Porting Tests**: If you're porting tests from ethereum/tests, see the [porting guide](https://eest.ethereum.org/main/writing_tests/porting_legacy_tests) for coverage analysis and using `--skip-coverage-missed-reason` when needed.
103
103
104
104
9. **Verify your changes** by running the appropriate checks:
Copy file name to clipboardExpand all lines: docs/dev/index.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ This documentation is aimed at `execution-spec-tests` developers:
9
9
-[Logging](./logging.md): Documentation on using the custom logging system with enhanced features.
10
10
-[Enabling pre-commit checks](./precommit.md): A guide for setting up pre-commit hooks to enforce code quality before commits.
11
11
-[Running github actions locally](./test_actions_locally.md): Instructions for testing GitHub Actions workflows on your local machine to streamline development and debugging.
12
-
-[Porting tests](./porting_legacy_tests.md): A guide to porting legacy ethereum tests to EEST.
13
12
14
13
These sections are primarily aimed at `execution-spec-tests` maintainers:
Copy file name to clipboardExpand all lines: docs/writing_tests/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,5 +25,6 @@ For help deciding which test format to select, see [Types of Tests](./types_of_t
25
25
-[Adding a New Test](./adding_a_new_test.md) - Step-by-step guide to adding new tests
26
26
-[Writing a New Test](./writing_a_new_test.md) - Detailed guide on writing different test types
27
27
-[Using and Extending Fork Methods](./fork_methods.md) - How to use fork methods to write fork-adaptive tests
28
+
-[Porting tests](./porting_legacy_tests.md): A guide to porting @ethereum/tests to EEST.
28
29
29
30
Please check that your code adheres to the repo's coding standards and read the other pages in this section for more background and an explanation of how to implement state transition and blockchain tests.
Copy file name to clipboardExpand all lines: docs/writing_tests/porting_legacy_tests.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,35 @@ While automating the conversion of the remaining YAML (or JSON) test cases to Py
15
15
16
16
## Porting an original test
17
17
18
-
1. Select one or more YAML test cases from ethereum/tests to port and create an issue in this repository AND comment on [this tracker issue.](https://github.com/ethereum/execution-spec-tests/issues/972)
18
+
1. Select one or more test cases from `./tests/static/state_tests/` to port and create an issue in this repository AND comment on [this tracker issue.](https://github.com/ethereum/execution-spec-tests/issues/972)
19
19
20
20
2.[Add a new test](../writing_tests/index.md) in the appropriate fork folder, following the guidelines for [choosing a test type.](../writing_tests/types_of_tests.md#deciding-on-a-test-type)
21
21
22
22
3. Submit a PR with the ported tests:
23
23
24
-
1. Add the list of ported YAML files to [`converted-ethereum-tests.txt`](https://github.com/ethereum/execution-spec-tests/blob/1b30c336eae6b0746ea4db441ac74406f2fb2322/converted-ethereum-tests.txt).
25
-
2. Open a PR to remove the ported tests from the _original tests_ repository.
24
+
1. Add the list of ported files using python marker to the head of your python test.
# coverage_missed_reason="Converting solidity code result in following opcode not being used:",
36
+
```
37
+
38
+
Replace test names with your chosen tests andPR number.
39
+
40
+
Uncomment coverage_missed_reason when all the missed coverage lines are approved, usually some opcodes end up not used after translating test logic from lllc, yul.
41
+
42
+
But sometimes missed coverage line could hint that you forgot to account important test logic.
43
+
44
+
If no coverage is missed, you are good!
45
+
46
+
2. Remove the ported files from .tests/static/state_tests in your PR
26
47
27
48
> See also: 📄 [Getting started withEEST.](../getting_started/repository_overview.md)
28
49
@@ -46,7 +67,7 @@ By default, EVM logs are stored in the `logs` folder at the repository root. You
46
67
47
68
It's crucial that ported tests maintain coverage parity with _original tests_. This ensures that no critical functions are left untested and prevents the introduction of bugs. A CI workflow automatically checks for coverage.
48
69
49
-
If coverage action fails (See: 📄 [An example of a failing test coverage](https://github.com/ethereum/execution-spec-tests/actions/runs/13037332959/job/36370897481)), it's recommended to run the coverage action locally (see: 📄 [How to run GitHub actions locally](./test_actions_locally.md)), which should generate a `evmtest_coverage` directory:
70
+
If coverage action fails (See: 📄 [An example of a failing test coverage](https://github.com/ethereum/execution-spec-tests/actions/runs/13037332959/job/36370897481)), it's recommended to run the coverage action locally (see: 📄 [How to run GitHub actions locally](../dev/test_actions_locally.md)), which should generate a `evmtest_coverage` directory:
0 commit comments