Skip to content

Commit

Permalink
Merge pull request #187 from snitch-org/cschreib/reporters
Browse files Browse the repository at this point in the history
Fix reporters not being disabled when requested
  • Loading branch information
cschreib authored Oct 11, 2024
2 parents ecfa3d6 + 760dda6 commit 2a1808f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ snitch.sublime-workspace
tests/approval_tests/data/actual
tests/approval_tests/data/blanked
install/
.sublime-tests/
2 changes: 1 addition & 1 deletion include/snitch/snitch_reporter_catch2_xml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion include/snitch/snitch_reporter_teamcity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
25 changes: 25 additions & 0 deletions snitch.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -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":
[
Expand Down
2 changes: 1 addition & 1 deletion src/snitch_reporter_catch2_xml.cpp
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/snitch_reporter_teamcity.cpp
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 2a1808f

Please sign in to comment.