Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test file includes are not extractes for test runners #621

Closed
jannisbaudisch opened this issue Aug 12, 2021 · 3 comments
Closed

Test file includes are not extractes for test runners #621

jannisbaudisch opened this issue Aug 12, 2021 · 3 comments

Comments

@jannisbaudisch
Copy link

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
Copy link
Author

Fix with pull request #622 github is not able to link these two at the moment

@HenrikJo
Copy link

HenrikJo commented Sep 8, 2023

Any workaround for now?

@mkarlesky
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants