Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Test fixtures for use by clients are available for each release on the [Github r

### 🧪 Test Cases

- 🔀 Automatically apply the `zkevm` marker to all tests under `./tests/zkevm/` and `./tests/prague/eip2537_bls_12_381_precompiles/` via conftest configuration ([#1534](https://github.com/ethereum/execution-spec-tests/pull/1534)).

## [v4.4.0](https://github.com/ethereum/execution-spec-tests/releases/tag/v4.4.0) - 2025-04-29

### 💥 Breaking Change
Expand Down
8 changes: 8 additions & 0 deletions tests/prague/eip2537_bls_12_381_precompiles/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Shared pytest definitions local to EIP-2537 tests."""

from pathlib import Path
from typing import SupportsBytes

import pytest
Expand All @@ -11,6 +12,13 @@
from .spec import GAS_CALCULATION_FUNCTION_MAP


def pytest_collection_modifyitems(config, items):
"""Add the `zkevm` marker to all tests in `./tests/prague/eip2537_bls_12_381_precompiles`."""
for item in items:
if Path(__file__).parent in Path(item.fspath).parents:
item.add_marker(pytest.mark.zkevm)


@pytest.fixture
def vector_gas_value() -> int | None:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
pytestmark = [
pytest.mark.valid_from("Prague"),
pytest.mark.parametrize("precompile_address", [Spec.G1ADD], ids=[""]),
pytest.mark.zkevm,
]


Expand Down
12 changes: 12 additions & 0 deletions tests/zkevm/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Pytest configuration for zkEVM tests."""

from pathlib import Path

import pytest


def pytest_collection_modifyitems(config, items):
"""Add the `zkevm` marker to all tests under `./tests/zkevm`."""
for item in items:
if Path(__file__).parent in Path(item.fspath).parents:
item.add_marker(pytest.mark.zkevm)
1 change: 0 additions & 1 deletion tests/zkevm/test_worst_bytecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
XOR_TABLE = [Hash(i).sha256() for i in range(XOR_TABLE_SIZE)]


@pytest.mark.zkevm
@pytest.mark.parametrize(
"opcode",
[
Expand Down
1 change: 0 additions & 1 deletion tests/zkevm/test_worst_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
KECCAK_RATE = 136


@pytest.mark.zkevm
@pytest.mark.valid_from("Cancun")
@pytest.mark.parametrize(
"gas_limit",
Expand Down
Loading