From 693a1ba50bc7c1089709b9236b0a1f51a9b3fce3 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 3 Nov 2021 10:31:50 +0100 Subject: [PATCH 1/3] use `store_test_results` for prototype tests --- .circleci/config.yml | 4 +++- .circleci/config.yml.in | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48d9d40ec83..7b8e6f3f985 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -277,7 +277,9 @@ jobs: command: pip install --user --progress-bar=off pytest pytest-mock - run: name: Run tests - command: pytest test/test_prototype_*.py + command: pytest --junitxml=test-results/junit.xml -v --durations 20 test/test_prototype_*.py + - store_test_results: + path: test-results binary_linux_wheel: <<: *binary_common diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index c243705fb11..52ac6b52201 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -277,7 +277,9 @@ jobs: command: pip install --user --progress-bar=off pytest pytest-mock - run: name: Run tests - command: pytest test/test_prototype_*.py + command: pytest --junitxml=test-results/junit.xml -v --durations 20 test/test_prototype_*.py + - store_test_results: + path: test-results binary_linux_wheel: <<: *binary_common From ebe2b37cb50461031a94131fe4bd3fae71b48e34 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 3 Nov 2021 10:33:31 +0100 Subject: [PATCH 2/3] add failing test --- test/test_prototype_datasets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_prototype_datasets.py b/test/test_prototype_datasets.py index 0cb6365278f..1a16a44d58d 100644 --- a/test/test_prototype_datasets.py +++ b/test/test_prototype_datasets.py @@ -9,6 +9,10 @@ def make_minimal_dataset_info(name="name", type=datasets.utils.DatasetType.RAW, return datasets.utils.DatasetInfo(name, type=type, categories=categories or [], **kwargs) +def test_debug(): + assert False, "If you can see this in the CircleCI 'Tests' tab, everything is working as expected!" + + class TestFrozenMapping: @pytest.mark.parametrize( ("args", "kwargs"), From a9b8d37f7d854c663f27ce664705d74e02afd79c Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 3 Nov 2021 10:43:19 +0100 Subject: [PATCH 3/3] Revert "add failing test" This reverts commit ebe2b37cb50461031a94131fe4bd3fae71b48e34. --- test/test_prototype_datasets.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test_prototype_datasets.py b/test/test_prototype_datasets.py index 1a16a44d58d..0cb6365278f 100644 --- a/test/test_prototype_datasets.py +++ b/test/test_prototype_datasets.py @@ -9,10 +9,6 @@ def make_minimal_dataset_info(name="name", type=datasets.utils.DatasetType.RAW, return datasets.utils.DatasetInfo(name, type=type, categories=categories or [], **kwargs) -def test_debug(): - assert False, "If you can see this in the CircleCI 'Tests' tab, everything is working as expected!" - - class TestFrozenMapping: @pytest.mark.parametrize( ("args", "kwargs"),