wide-midnight-78598
08/18/2022, 2:03 AMcc_binary(
name="tests",
dependencies=["./src:sources", "./tests:tests"]
)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests is a Catch v2.13.9 host application.
Run with -? for options
-------------------------------------------------------------------------------
Additions are correct
-------------------------------------------------------------------------------
examples/cc/core/tests/greeter.cpp:4
...............................................................................
examples/cc/core/tests/greeter.cpp:7: FAILED:
REQUIRE( add(1, 2) == 2 )
with expansion:
3 == 2
===============================================================================
test cases: 1 | 1 failed
assertions: 2 | 1 passed | 1 failed
However, assuming I want to make a cc_tests
target, would that expect to live inside my tests folder, and then infer the location of the sources? And would this inference happen because of an expected filesystem relativity?cc_tests
takes test sources, then infers the production sources/libraries they came from, creates a binary, and runs it?witty-crayon-22786
08/19/2022, 12:04 AM@tdyas
is back from vacation next week (not pinging) and will almost certainly have thoughts here.wide-midnight-78598
08/19/2022, 12:17 AM