Skip to content

Commit 63cbed7

Browse files
authored
Merge pull request #156 from elbeno/pytest-deps
🎨 Improve hypothesis tests
2 parents c8aa593 + 89525a2 commit 63cbed7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616
DEFAULT_LLVM_VERSION: 18
1717
DEFAULT_GCC_VERSION: 13
1818
MULL_LLVM_VERSION: 17
19+
HYPOTHESIS_PROFILE: ci
1920

2021
concurrency:
2122
group: ${{ github.head_ref || github.run_id }}

test/pbt/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ if(${CMAKE_CXX_STANDARD} GREATER_EQUAL 20)
88
PYTEST
99
FILES
1010
tuple.py
11+
EXTRA_DEPS
12+
${CMAKE_SOURCE_DIR}/include/stdx/tuple.hpp
13+
${CMAKE_SOURCE_DIR}/include/stdx/tuple_algorithms.hpp
1114
EXTRA_ARGS
1215
-vv
1316
-n2

test/pbt/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
hypothesis.settings.register_profile("ci", max_examples=500)
1010
hypothesis.settings.register_profile("fast", max_examples=10)
1111

12-
12+
profile = os.environ.get("HYPOTHESIS_PROFILE", "fast")
13+
hypothesis.settings.load_profile(profile)
1314

1415
def pytest_addoption(parser):
1516
parser.addoption("--compiler", action="store", help="C++ compiler", default=None, required=False)

0 commit comments

Comments
 (0)