Opened 13 years ago
Last modified 10 years ago
#762 new defect
Code Coverage and Unit Test Charts do not play along with Git
Reported by: | andreas.schroeder@… | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 0.6.1 |
Component: | Trac plugin | Version: | dev |
Keywords: | Cc: | spam.martin.schulze@… | |
Operating System: | Linux |
Description
The "Code Coverage" and "Unit Tests" charts on the "Build Configuration" view remain empty when the repository in use is a Git repository.
This is because the json-data that is returned for plotting in the charts use the revision as x value, and hence with Git are of the sort:
{"data":[{"data":[ ["fcbb2ef18ca2ac9625282fd927f2b0eeee0128a5",6955], ["3aab25b1fcf1ff60cfcc6fcb08a0a263ef66865e",6955], ["8a6ee8a6e9d6cfd64a613ec9fa71fea831c05358",6955], (...)
and the plot() function in the chrome/bitten/jquery.flot.js script uses these tags as x values. According to Hodgestar, the root cause of the issue can be found
"at line 49 of bitten/report/testing.py (and some related bits later): tests.append([rev, 0, 0, 0])"
Attachments (4)
Change History (7)
Changed 13 years ago by andreas.schroeder@…
comment:1 Changed 13 years ago by anonymous
comment:2 Changed 13 years ago by andreas.schroeder@…
please look into the second patch, the first one had errors, and the unit tests didn't pass.
Changed 13 years ago by andreas.schroeder@…
Second patch proposal, includes flot patch proposal for rotated labels. Patch is against Revision 1010.
comment:3 Changed 10 years ago by Martin Schulze <spam.martin.schulze@…>
- Cc spam.martin.schulze@… added
I see that this problem still persists. What is the current status on this one?
The empty coverage and unit test charts I get when using Git