diff --git a/package/version b/package/version index 8708376b8..160644738 100644 --- a/package/version +++ b/package/version @@ -1 +1 @@ -0.1.166 +0.1.167 diff --git a/pyproject.toml b/pyproject.toml index 70721b95c..b731e5446 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "kontrol" -version = "0.1.166" +version = "0.1.167" description = "Foundry integration for KEVM" authors = [ "Runtime Verification, Inc. ", diff --git a/src/kontrol/__init__.py b/src/kontrol/__init__.py index e9d93b43d..292089263 100644 --- a/src/kontrol/__init__.py +++ b/src/kontrol/__init__.py @@ -5,4 +5,4 @@ if TYPE_CHECKING: from typing import Final -VERSION: Final = '0.1.166' +VERSION: Final = '0.1.167' diff --git a/src/kontrol/foundry.py b/src/kontrol/foundry.py index 91827ebca..e0762f7f8 100644 --- a/src/kontrol/foundry.py +++ b/src/kontrol/foundry.py @@ -258,12 +258,13 @@ def build(self) -> None: @cached_property def all_tests(self) -> list[str]: + test_dir = os.path.join(self.profile.get('test', 'test'), '') return [ f'{contract.name_with_path}.{method.signature}' for contract in self.contracts.values() - if contract.name_with_path.endswith('Test') + if contract.contract_path.startswith(test_dir) for method in contract.methods - if method.name.startswith('test') + if method.is_test ] @cached_property