Thoughts on Code Coverage? #8636
Replies: 2 comments 10 replies
-
Getting code coverage on the unit tests would probably be straightforward. It'd be harder on the runtime tests, which mostly exist so far only for Burn and new custom actions. |
Beta Was this translation helpful? Give feedback.
-
Also note that historically, the Standard CustomActions had no integration tests before WiX v4. In general, the test infrastructure was pretty underdeveloped in WiX v3. That improved in WiX v4 for the core and Burn, but time ran out for the CustomActions. So, it does not surprise me when we hit issues like wixtoolset/issues##8628 and #8638 and indicates there would be value in adding integration tests for the CustomActions. Code coverage would be cool too, if not too onerous to deal with. |
Beta Was this translation helpful? Give feedback.
-
It appears that there's quite a few WiX Extension elements which don't currently get tested through changes to other aspects of the system.
It would be ideal if there was a way to readily identify where some of those 'black holes' of code might still be that don't currently get exercised through any of the existing Build / Runtime tests.
It would be ideal if there was a way to have Code Coverage across the WiX landscape.
I'm unsure if this has been looked into. Perhaps some low hanging fruit might just be around the C# front-end.
For the various Extension Custom Actions I can imagine that capturing the coverage data might be difficult, is it something that would have actual benefits that others can see? (or am I perhaps just being naive in thinking it might be possible)
Beta Was this translation helpful? Give feedback.
All reactions