wasp/stic/test/BUILD

30 lines
758 B
Python
Raw Normal View History

2018-09-29 12:29:04 +03:00
load(":macros.bzl", "simple_target_test")
# Catch2 is test framework that we are using. It has only one header file, which we included directly in code.
2018-09-29 11:59:41 +03:00
cc_library(
name = "catch2",
hdrs = ["catch.hpp"]
)
2018-09-29 12:29:04 +03:00
# In order to be able to run Catch2 tests, it is important to have this main method defined (as by Catch2 documentation).
cc_library(
name = "catch-main",
srcs = ["main.cpp"],
deps = [
2018-09-29 11:59:41 +03:00
":catch2"
]
)
2018-09-30 00:41:53 +03:00
# Individual tests (per target).
# Each test expects a target in src/ and a .test.cpp file with same name to exist.
2018-09-29 12:29:04 +03:00
# Add new tests here! Also, add them to test suite all-tests below.
2018-09-30 00:20:05 +03:00
simple_target_test("utils")
2018-09-29 11:59:41 +03:00
2018-09-29 12:29:04 +03:00
# Test suite that runs all the tests.
test_suite(
name = "all-tests",
2018-09-29 12:29:04 +03:00
tests = [
2018-09-30 00:20:05 +03:00
"utils"
]
)