Skip to content

Commit

Permalink
add xfail for broken test and use xdist to parallelize
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Feb 6, 2024
1 parent 86f7c36 commit dd16d99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TEST_GENERATOR_EXTRA := dev
ifneq ($(TESTS),)
TEST_ARGS := -x -k $(TESTS)
else
TEST_ARGS :=
TEST_ARGS := -n auto
endif

.PHONY: all
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"test": [
"pytest",
"pytest-xdist",
"solc-select>=0.1.4",
],
"dev": [
Expand Down
2 changes: 2 additions & 0 deletions tests/test_types_medusa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import re
import subprocess
import pytest
from .conftest import TestGenerator

TEST_DATA_DIR = Path(__file__).resolve().parent / "test_data"
Expand Down Expand Up @@ -133,6 +134,7 @@ def test_medusa_structs_and_enums(structs_and_enums: TestGenerator) -> None:
assert False, "No tests were ran"


@pytest.mark.xfail(strict=True)
def test_medusa_value_transfer(value_transfer: TestGenerator) -> None:
"""Tests the BasicTypes contract with a Medusa corpus"""
value_transfer.medusa_generate_tests()
Expand Down

0 comments on commit dd16d99

Please sign in to comment.