Is your feature request related to a problem? Please describe.
This is related to target name clashes described in #3380 where multiple subdirectories have a tests target.
Describe the solution you'd like
xmake should have the facility to easily compile and execute tests:
xmake test [target dir or more specific target] [options]
a new target kind of test would be needed to let xmake know what was a test.
Related to the target clashes described in #3380, when including subdirectories where the author was not aware that defining tests was a going to be a thing in the future, we could have something like :
Is your feature request related to a problem? Please describe.
This is related to target name clashes described in #3380 where multiple subdirectories have a
tests
target.Describe the solution you'd like
xmake should have the facility to easily compile and execute tests:
test
would be needed to let xmake know what was a test.Related to the target clashes described in #3380, when including subdirectories where the author was not aware that defining tests was a going to be a thing in the future, we could have something like :
... which would stop those targets being built as part of a non-test build.
cargo test is highly recommended and since xmake supports languages with integrated testing already:
xmake test
should also be able to run (e.g.)zig test
orcargo test
for targets using these languagesFor complete testing in C/C++:
Describe alternatives you've considered
No response
Additional context
No response