mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-22 16:41:30 +03:00
14 lines
390 B
Python
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
|
|
]
|
|
)
|