Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

Test file includes are not extractes for test runners

Open jannisbaudisch opened this issue 3 years ago • 2 comments

When you use parameterized test and use macros or enum values inside the TEST_CASE macro of external headers, the linker will exit with an error. The reason for this is, that header files from the test file are not written into the test runner.

The reason for this is that we pass an empty array to generator_test_runner in generator.rb line 70

    test_file_includes = [] # Empty list for now, since apparently unused

    # build runner file
    begin
      @generator_test_runner.generate(module_name, runner_filepath, test_cases, mock_list, test_file_includes)

jannisbaudisch avatar Aug 12 '21 07:08 jannisbaudisch

Fix with pull request https://github.com/ThrowTheSwitch/Ceedling/pull/622 github is not able to link these two at the moment

jannisbaudisch avatar Aug 12 '21 08:08 jannisbaudisch

Any workaround for now?

HenrikJo avatar Sep 08 '23 08:09 HenrikJo

This has been fixed with latest prerelease build of Ceedling 1.0.0.

mkarlesky avatar Jul 18 '24 21:07 mkarlesky