Skip to content

Running several variations of the same test file #948

Answered by mvandervoord
dertarr asked this question in Q&A
Discussion options

You must be logged in to vote

If you're using one of the pre-releases for 1.0.0, the best method is to do the following:

Create two test files... a test_module_under_test.c and a test_module_under_test_2.c (or whatever you want to call them). The tests can be as different or similar as is needed for the different define settings. For either or both, you can add an entry to the defines list in your project.yml file which are file specific:

:defines:
  :test:
    '*': 
      - TEST
      - OTHER_STUFF
    test_module_under_test_2.c:
      - ENABLE_SUBSET

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dertarr
Comment options

@mvandervoord
Comment options

@dertarr
Comment options

@mvandervoord
Comment options

Answer selected by dertarr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants