From dd16d99cb8a5e814584f95eb64974f4ca1542154 Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Tue, 6 Feb 2024 09:30:46 -0600 Subject: [PATCH] add xfail for broken test and use xdist to parallelize --- Makefile | 2 +- setup.py | 1 + tests/test_types_medusa.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6287f7d..9892a74 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/setup.py b/setup.py index 4236e5c..ce8e627 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ ], "test": [ "pytest", + "pytest-xdist", "solc-select>=0.1.4", ], "dev": [ diff --git a/tests/test_types_medusa.py b/tests/test_types_medusa.py index c2f6586..1786c16 100644 --- a/tests/test_types_medusa.py +++ b/tests/test_types_medusa.py @@ -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" @@ -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()