This repository has been archived by the owner on Aug 7, 2020. It is now read-only.
First pass at generating cobertura-style output using string templates #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes are by no means complete, but I wanted to get some feedback on them before continuing development. I know the ultimate goal for Saga is to get away from string templates for reports, however, I think using string templates to generate the cobertura report for now is much simpler.
One key bit of work that still remains is to group the files by package/directory so the results are easier to look at. Currently, all files will end up in a default package.
One other change I had to make but didn't like was adding a "sourceDirs" property to the configuration in for the maven integration. I couldn't find any other good way to populate the source directories in the cobertura report, especially when Saga was running with Jasmine, where all sources appear to come from http://localhost:1234
I would also like to be able to generate complexity statistics, method coverage, and branch coverage in the future, but that's going to rely on other work to get those stats from the coverage generators.
If this seems like a good start, I can continue the work to group the coverage by package/directory.