From 809f4a91070cf9d460eeb056a45310f2e651fb52 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Fri, 11 Oct 2024 15:41:22 +0100 Subject: [PATCH 1/2] Fix #185 --- include/snitch/snitch_reporter_catch2_xml.hpp | 2 +- include/snitch/snitch_reporter_teamcity.hpp | 2 +- src/snitch_reporter_catch2_xml.cpp | 2 +- src/snitch_reporter_teamcity.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/snitch/snitch_reporter_catch2_xml.hpp b/include/snitch/snitch_reporter_catch2_xml.hpp index 958ed3e5..846ff0b3 100644 --- a/include/snitch/snitch_reporter_catch2_xml.hpp +++ b/include/snitch/snitch_reporter_catch2_xml.hpp @@ -3,7 +3,7 @@ #include "snitch/snitch_config.hpp" -#if defined(SNITCH_WITH_CATCH2_XML_REPORTER) || defined(SNITCH_WITH_ALL_REPORTERS) +#if SNITCH_WITH_CATCH2_XML_REPORTER || SNITCH_WITH_ALL_REPORTERS # include "snitch/snitch_test_data.hpp" diff --git a/include/snitch/snitch_reporter_teamcity.hpp b/include/snitch/snitch_reporter_teamcity.hpp index 57d2c71d..a0096377 100644 --- a/include/snitch/snitch_reporter_teamcity.hpp +++ b/include/snitch/snitch_reporter_teamcity.hpp @@ -3,7 +3,7 @@ #include "snitch/snitch_config.hpp" -#if defined(SNITCH_WITH_TEAMCITY_REPORTER) || defined(SNITCH_WITH_ALL_REPORTERS) +#if SNITCH_WITH_TEAMCITY_REPORTER || SNITCH_WITH_ALL_REPORTERS # include "snitch/snitch_test_data.hpp" diff --git a/src/snitch_reporter_catch2_xml.cpp b/src/snitch_reporter_catch2_xml.cpp index f7127527..f9be40e0 100644 --- a/src/snitch_reporter_catch2_xml.cpp +++ b/src/snitch_reporter_catch2_xml.cpp @@ -1,6 +1,6 @@ #include "snitch/snitch_config.hpp" -#if defined(SNITCH_WITH_CATCH2_XML_REPORTER) || defined(SNITCH_WITH_ALL_REPORTERS) +#if SNITCH_WITH_CATCH2_XML_REPORTER || SNITCH_WITH_ALL_REPORTERS # include "snitch/snitch_macros_reporter.hpp" # include "snitch/snitch_registry.hpp" diff --git a/src/snitch_reporter_teamcity.cpp b/src/snitch_reporter_teamcity.cpp index e49e8b70..3905f7b9 100644 --- a/src/snitch_reporter_teamcity.cpp +++ b/src/snitch_reporter_teamcity.cpp @@ -1,6 +1,6 @@ #include "snitch/snitch_config.hpp" -#if defined(SNITCH_WITH_TEAMCITY_REPORTER) || defined(SNITCH_WITH_ALL_REPORTERS) +#if SNITCH_WITH_TEAMCITY_REPORTER || SNITCH_WITH_ALL_REPORTERS # include "snitch/snitch_macros_reporter.hpp" # include "snitch/snitch_registry.hpp" From 760dda6465103cd43da494982eda15d773c3ff50 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Fri, 11 Oct 2024 15:44:44 +0100 Subject: [PATCH 2/2] Add test explorer for sublime text --- .gitignore | 1 + snitch.sublime-project | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.gitignore b/.gitignore index add3a21d..065011c4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ snitch.sublime-workspace tests/approval_tests/data/actual tests/approval_tests/data/blanked install/ +.sublime-tests/ diff --git a/snitch.sublime-project b/snitch.sublime-project index 762bb93e..954422e5 100644 --- a/snitch.sublime-project +++ b/snitch.sublime-project @@ -15,6 +15,31 @@ { "format_on_save": true, }, + "TestExplorer": + { + "data_location": ".sublime-tests", + "frameworks": [ + { + "id": "runtime-tests", + "type": "catch2", + "executable_pattern": "build/tests/snitch_runtime_tests_self", + "path_prefix_style": "basename" + }, + { + "id": "runtime-tests-self", + "type": "doctest-cpp", + "executable_pattern": "build/tests/snitch_runtime_tests", + "path_prefix_style": "basename" + }, + { + "id": "approval-tests", + "type": "doctest-cpp", + "executable_pattern": "build/tests/snitch_approval_tests", + "cwd": "tests/approval_tests", + "path_prefix_style": "basename" + }, + ] + }, }, "build_systems": [