Coverage flags with functional testing #618
-
Hi We've been working with the unit/coverage and functional testing that is supported by the cFS CMake system, and due to an error, we noticed that building cFS apps with coverage flags prevents them from being dynamically loaded at runtime. Is it possible to provide coverage information for the actual runtime functional tests? We assumed it's not but better to check if anything has been attempted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I did mess around with the OSAL functional tests at one point to try and add coverage reporting, related issue: nasa/osal#936. Since those are stand alone I'm convinced it's technically possible but I didn't really ever close out that work. I haven't ever tried with the cFS apps and the cFE functional test app... I'm not sure if it's possible with them being dynamically loaded. Could possibly do the static build and you may have more luck. But the comment from Joe on the linked issue is certainly valid, it's not trivial to get coverage to work on a target. |
Beta Was this translation helpful? Give feedback.
I did mess around with the OSAL functional tests at one point to try and add coverage reporting, related issue: nasa/osal#936. Since those are stand alone I'm convinced it's technically possible but I didn't really ever close out that work. I haven't ever tried with the cFS apps and the cFE functional test app... I'm not sure if it's possible with them being dynamically loaded. Could possibly do the static build and you may have more luck. But the comment from Joe on the linked issue is certainly valid, it's not trivial to get coverage to work on a target.