wasp/stic/test/macros.bzl
2018-09-29 11:29:04 +02:00

14 lines
390 B
Python

# Given target name from //src package, expects .test.cpp file with same name.
# Creates a cc_test for that target.
def simple_target_test(target_name):
native.cc_test(
name = target_name,
srcs = [target_name + ".test.cpp"],
copts = ["-Isrc/"],
deps = [
":catch2",
"catch-main",
"//src:" + target_name
]
)