project_options icon indicating copy to clipboard operation
project_options copied to clipboard

feat: add a wrapper module for add_test

Open FeignClaims opened this issue 2 years ago • 3 comments

from aminya/cpp_vcpkg_project#35.

Additionally, add [WORKING_DIRECTORY <dir>] and [WILL_FAIL] to specify the corresponding test property.

FeignClaims avatar Oct 02 '23 03:10 FeignClaims

Added these functions to test projects.

FeignClaims avatar Oct 17 '23 07:10 FeignClaims

Changed test projects based on this feature and tested well, ready to merge.

FeignClaims avatar Feb 05 '24 13:02 FeignClaims

Add an example or document the use of add_test() with multiple args please.

There's already an example in the document: https://github.com/FeignClaims/project_options/blob/9170c3b7b5e68840d01d79beed3b85948cd71d0e/src/Tests.cmake#L350-L355

Additionally, I added a use of add_executable_test() with args in tests.

add_executable_test(main no_arg)
add_executable_test(main with_arg
  EXECUTE_ARGS hello world
)

FeignClaims avatar Feb 14 '24 06:02 FeignClaims