You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I could gather from some testing I did last night, it seems that globally defined/registered boost::ut::suite objects do not show up in code coverage even though they do in fact run.
Seems that code coverage is only picked up from when main starts and ends and due to this working during global static initialization occurs, none of the unit tests are picked up.
A work around appears to be changing the suite to a simple void function and calling it within the main function will fix the problem if one wants to keep their test files separate.
Is there some way to prevent suites from being executed at static init time and be manually run within main. That way we get the global registration, but we don't execute before main executes. I'm not sure what would be required to make this work with the runner config. Any thoughts?
The text was updated successfully, but these errors were encountered:
From what I could gather from some testing I did last night, it seems that globally defined/registered boost::ut::suite objects do not show up in code coverage even though they do in fact run.
Seems that code coverage is only picked up from when main starts and ends and due to this working during global static initialization occurs, none of the unit tests are picked up.
A work around appears to be changing the suite to a simple void function and calling it within the main function will fix the problem if one wants to keep their test files separate.
Is there some way to prevent suites from being executed at static init time and be manually run within main. That way we get the global registration, but we don't execute before main executes. I'm not sure what would be required to make this work with the runner config. Any thoughts?
The text was updated successfully, but these errors were encountered: