Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/ExtraTests/X30-BazelReporter.cpp
diff options
context:
space:
mode:
authorLukasz Okraszewski2022-04-08 17:01:59 +0100
committerGitHub2022-04-08 18:01:59 +0200
commitcb551b4f6d338020322eb39a2f3747c81896a1ba (patch)
treec44d70ec3a0f007fe2cada04b72100b73d67a368 /tests/ExtraTests/X30-BazelReporter.cpp
parent4b7815798107b4226b5e00b6f49e4be5848328e6 (diff)
downloadcatch3-cb551b4f6d338020322eb39a2f3747c81896a1ba.tar.gz
Add default reporter for Bazel integration (#2399)
When the added Bazel configuration flag is enabled, a default JUnit reporter will be added if the XML envrioment variable is defined. Fix include paths for generated config header. Enable Bazel config by default when building with Bazel. Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
Diffstat (limited to 'tests/ExtraTests/X30-BazelReporter.cpp')
-rw-r--r--tests/ExtraTests/X30-BazelReporter.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ExtraTests/X30-BazelReporter.cpp b/tests/ExtraTests/X30-BazelReporter.cpp
new file mode 100644
index 00000000..6a6168db
--- /dev/null
+++ b/tests/ExtraTests/X30-BazelReporter.cpp
@@ -0,0 +1,17 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
+/**\file
+ * Test the Bazel report functionality with a simple set
+ * of dummy test cases.
+ */
+
+#include <catch2/catch_test_macros.hpp>
+
+TEST_CASE( "Passing test case" ) { REQUIRE( 1 == 1 ); }
+TEST_CASE( "Failing test case" ) { REQUIRE( 2 == 1 ); }