Feature #6739
closedKeep and visualize coverage
Added by Evgeny Novikov almost 9 years ago. Updated over 7 years ago.
0%
Description
Likely we will need to develop our own visualization technique since LCOV functionality will not match all our demands sooner or later.
Files
Screenshot_20170811_140320.png (22.2 KB) Screenshot_20170811_140320.png | Alexey Polushkin, 08/11/2017 02:10 PM | ||
Screenshot_20170811_153435.png (18.7 KB) Screenshot_20170811_153435.png | Evgeny Novikov, 08/11/2017 03:46 PM | ||
verificationcoverage files archive report files.zip (652 KB) verificationcoverage files archive report files.zip | Alexey Polushkin, 08/11/2017 04:56 PM |
Updated by Evgeny Novikov almost 9 years ago
- Subject changed from Keep and visuilize coverage to Keep and visualize coverage
Updated by Evgeny Novikov about 8 years ago
- Priority changed from Normal to Urgent
Code coverage is a quite interesting view on verification quality. So when Core will report it Bridge should visualize it nicely.
Updated by Evgeny Novikov almost 8 years ago
- Priority changed from Urgent to High
This issue can't be urgent since its predecessors won't be implemented soon.
Updated by Evgeny Novikov over 7 years ago
- Priority changed from High to Urgent
This feature is strictly necessary for the common workflow but we need to wait until the blocking issue will be resolved.
Updated by Alexey Polushkin over 7 years ago
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Updated by Vladimir Gratinskiy over 7 years ago
Alexey Polushkin wrote:
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Everything I can do is to add a little bit more space. But you can choose file from the statistic table or make path shorter.
Updated by Evgeny Novikov over 7 years ago
Vladimir Gratinskiy wrote:
Alexey Polushkin wrote:
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Everything I can do is to add a little bit more space. But you can choose file from the statistic table or make path shorter.
The latter is possible always. Regarding the former can't you open new items to the left when there isn't enough space like with very many sub-menus? Also new subdirectories can be shown not after the previous ones but below them like:
subdir1 subdir2 subdir3 ... file
Updated by Evgeny Novikov over 7 years ago
Evgeny Novikov wrote:
Vladimir Gratinskiy wrote:
Alexey Polushkin wrote:
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Everything I can do is to add a little bit more space. But you can choose file from the statistic table or make path shorter.
The latter is possible always. Regarding the former can't you open new items to the left when there isn't enough space like with very many sub-menus? Also new subdirectories can be shown not after the previous ones but below them like:
[...]
One more solution is to reduce menu sizes. Now they look like:
[subdir1 ][subdir2 ][file ]
You can reduce the width in the following way:
[subdir1][subdir2][file]
But this doesn't solve the issue in general.
Updated by Vladimir Gratinskiy over 7 years ago
Evgeny Novikov wrote:
Vladimir Gratinskiy wrote:
Alexey Polushkin wrote:
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Everything I can do is to add a little bit more space. But you can choose file from the statistic table or make path shorter.
The latter is possible always. Regarding the former can't you open new items to the left when there isn't enough space like with very many sub-menus? Also new subdirectories can be shown not after the previous ones but below them like:
[...]
If there are more than one subdirectories/files in any dir then it will look like (when you hover subdir 2):
dir subdir1 subdir2 subdir3 file_of_subdir2
And now how you want to hover file_of_subdir2 without hovering subdir3 (which is closing subdir2 and opens content of subdir3)? Semantic ui doesn't provide too much options for such menu, so I can't show content of subdir2 over the subdir3.
Updated by Evgeny Novikov over 7 years ago
Vladimir Gratinskiy wrote:
Evgeny Novikov wrote:
Vladimir Gratinskiy wrote:
Alexey Polushkin wrote:
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Everything I can do is to add a little bit more space. But you can choose file from the statistic table or make path shorter.
The latter is possible always. Regarding the former can't you open new items to the left when there isn't enough space like with very many sub-menus? Also new subdirectories can be shown not after the previous ones but below them like:
[...]If there are more than one subdirectories/files in any dir then it will look like (when you hover subdir 2):
[...]
And now how you want to hover file_of_subdir2 without hovering subdir3 (which is closing subdir2 and opens content of subdir3)? Semantic ui doesn't provide too much options for such menu, so I can't show content of subdir2 over the subdir3.
Okay. If the current framework doesn't support this, what about the first and the third solutions (their combination is even better)?
Updated by Vladimir Gratinskiy over 7 years ago
Evgeny Novikov wrote:
Evgeny Novikov wrote:
Vladimir Gratinskiy wrote:
Alexey Polushkin wrote:
Can not open file for coverage if path is too long. I have attached screenshot with this problem
Everything I can do is to add a little bit more space. But you can choose file from the statistic table or make path shorter.
The latter is possible always. Regarding the former can't you open new items to the left when there isn't enough space like with very many sub-menus? Also new subdirectories can be shown not after the previous ones but below them like:
[...]One more solution is to reduce menu sizes. Now they look like:
[...]
You can reduce the width in the following way:
[...]
But this doesn't solve the issue in general.
I didn't find an option in semantic ui docs to reduce size separately for each item in menu.
Updated by Vladimir Gratinskiy over 7 years ago
The first solution is not supported in semantic ui also.
Updated by Evgeny Novikov over 7 years ago
- When the coverage page is open I see an almost empty screen like at the attached screenshot. I suggest to show coverage statistics by default as well as open coverage of a first C source file from directory source files.
- Merge first and second columns of a covered source code window. At the moment there are just stub links that don't nothing (there won't be data and its statistics in real life soon). I suggest to have links just some data is available and show it on clicking.
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
- Button Show attributes doesn't work at the coverage page.
- Color maps for a both line and function coverage don't look nice because of they are too wide and are placed to far from the covered source code window. It will be better to place them horizontally rather than vertically.
- It would be nice to see the number of passes through a source line not only on covering a line number but also on covering lines themselves.
Updated by Evgeny Novikov over 7 years ago
Vladimir Gratinskiy wrote:
The first solution is not supported in semantic ui also.
So nothing works, so, your solution "But you can choose file from the statistic table" looks to be the only choice.
Updated by Vladimir Gratinskiy over 7 years ago
Evgeny Novikov wrote:
I have more coverage visualization improvement suggestions:
- When the coverage page is open I see an almost empty screen like at the attached screenshot. I suggest to show coverage statistics by default as well as open coverage of a first C source file from directory source files.
Showing the first source file is not obvious.
- Merge first and second columns of a covered source code window. At the moment there are just stub links that don't nothing (there won't be data and its statistics in real life soon). I suggest to have links just some data is available and show it on clicking.
If you don't want the second window, just set the option in settings to hide data.
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
This setting just replaces links to coverage page. So when you set the option, just go to verdict page and then go to coverage page or click the icon "Show coverage without data" on coverage page.
- Button Show attributes doesn't work at the coverage page.
Maybe it is because the verification report doesn't have any attributes?
- Color maps for a both line and function coverage don't look nice because of they are too wide and are placed to far from the covered source code window. It will be better to place them horizontally rather than vertically.
Have done it horizontally.
- It would be nice to see the number of passes through a source line not only on covering a line number but also on covering lines themselves.
Done.
Updated by Evgeny Novikov over 7 years ago
Vladimir Gratinskiy wrote:
Evgeny Novikov wrote:
I have more coverage visualization improvement suggestions:
- When the coverage page is open I see an almost empty screen like at the attached screenshot. I suggest to show coverage statistics by default as well as open coverage of a first C source file from directory source files.
Showing the first source file is not obvious.
But it is much more better than showing an almost empty screen. I think that it can be trivially done.
- Merge first and second columns of a covered source code window. At the moment there are just stub links that don't nothing (there won't be data and its statistics in real life soon). I suggest to have links just some data is available and show it on clicking.
If you don't want the second window, just set the option in settings to hide data.
Please, read carefully what I wrote. There are three auxiliary columns in covered source code window:
line number (link) - data existence - function declaration coverage.
I suggested to merge the first and the second to reduce space and avoid a lot of stub links that don't work like, say, for error traces.
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
This setting just replaces links to coverage page. So when you set the option, just go to verdict page and then go to coverage page or click the icon "Show coverage without data" on coverage page.
Now I catch this although this is abnormal. Why not have the same page addresses but various implementations? Also there are still a lot of stub links on line numbers (without data they are absolutely useless).
- Button Show attributes doesn't work at the coverage page.
Maybe it is because the verification report doesn't have any attributes?
But at least its parent reports have. So they should be shown.
- Color maps for a both line and function coverage don't look nice because of they are too wide and are placed to far from the covered source code window. It will be better to place them horizontally rather than vertically.
Have done it horizontally.
- It would be nice to see the number of passes through a source line not only on covering a line number but also on covering lines themselves.
Done.
Updated by Alexey Khoroshilov over 7 years ago
Vladimir Gratinskiy wrote:
I didn't find an option in semantic ui docs to reduce size separately for each item in menu.
It seems that menu is not appropriate choice here?
Updated by Alexey Polushkin over 7 years ago
- File verificationcoverage files archive report files.zip verificationcoverage files archive report files.zip added
I have got 'Unknown error', when open Coverage statistics. I have attached coverage archive.
Bridge error trace:Traceback (most recent call last):
File "/home/alexey/klever/klever/bridge/reports/views.py", line 874, in get_coverage_statistic
table = CoverageStatistics(request.POST['report_id']).table_html
File "/home/alexey/klever/klever/bridge/reports/coverage.py", line 472, in __init__
self._table_data = self.__get_table_data()
File "/home/alexey/klever/klever/bridge/reports/coverage.py", line 574, in __get_table_data
parents[fname]['lines']['color'] = TABLE_STAT_COLOR[color_id]
IndexError: list index out of range
Updated by Vladimir Gratinskiy over 7 years ago
Alexey Khoroshilov wrote:
Vladimir Gratinskiy wrote:
I didn't find an option in semantic ui docs to reduce size separately for each item in menu.
It seems that menu is not appropriate choice here?
OK then, I can just add list of files (not tree) as it were suggested in specification.
Updated by Evgeny Novikov over 7 years ago
Vladimir Gratinskiy wrote:
Alexey Khoroshilov wrote:
Vladimir Gratinskiy wrote:
I didn't find an option in semantic ui docs to reduce size separately for each item in menu.
It seems that menu is not appropriate choice here?
OK then, I can just add list of files (not tree) as it were suggested in specification.
My suggestion is to remove this button at all since required files can be found using a source tree representation for coverage statistics, especially when it will have some more advanced filters and show/hide actions.
Updated by Vladimir Gratinskiy over 7 years ago
Files tree button was removed. First found file and coverage statistic are shown by default. Columns "line number" and "has data" were merged. All attributes are shown.
Concerning different links to coverage with/without data - there is link on coverage page to minimize/maximize data.
Updated by Evgeny Novikov over 7 years ago
Did you fix this:
Alexey Polushkin wrote:
I have got 'Unknown error', when open Coverage statistics. I have attached coverage archive.
Bridge error trace:
Traceback (most recent call last):
File "/home/alexey/klever/klever/bridge/reports/views.py", line 874, in get_coverage_statistic
table = CoverageStatistics(request.POST['report_id']).table_html
File "/home/alexey/klever/klever/bridge/reports/coverage.py", line 472, in __init__
self._table_data = self.__get_table_data()
File "/home/alexey/klever/klever/bridge/reports/coverage.py", line 574, in __get_table_data
parents[fname]['lines']['color'] = TABLE_STAT_COLOR[color_id]
IndexError: list index out of range
After that the issue can be marked as resolved and all related branches can be merged to master.
Updated by Vladimir Gratinskiy over 7 years ago
Evgeny Novikov wrote:
Did you fix this:
Alexey Polushkin wrote:I have got 'Unknown error', when open Coverage statistics. I have attached coverage archive.
Bridge error trace:
Traceback (most recent call last):
File "/home/alexey/klever/klever/bridge/reports/views.py", line 874, in get_coverage_statistic
table = CoverageStatistics(request.POST['report_id']).table_html
File "/home/alexey/klever/klever/bridge/reports/coverage.py", line 472, in __init__
self._table_data = self.__get_table_data()
File "/home/alexey/klever/klever/bridge/reports/coverage.py", line 574, in __get_table_data
parents[fname]['lines']['color'] = TABLE_STAT_COLOR[color_id]
IndexError: list index out of rangeAfter that the issue can be marked as resolved and all related branches can be merged to master.
Fixed.
Updated by Evgeny Novikov over 7 years ago
Evgeny Novikov wrote:
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
The latter wasn't implemented. Why we need a list of choices containing of two Boolean variants?
Updated by Evgeny Novikov over 7 years ago
Evgeny Novikov wrote:
Evgeny Novikov wrote:
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
The latter wasn't implemented. Why we need a list of choices containing of two Boolean variants?
In addition I suppose to switch the default value from "with data" to "without data" since there likely won't be any data in near future.
Updated by Vladimir Gratinskiy over 7 years ago
Evgeny Novikov wrote:
Evgeny Novikov wrote:
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
The latter wasn't implemented. Why we need a list of choices containing of two Boolean variants?
I have to delete button "hide/show" data on coverage page to implement this feature (hide data on page refresh if user changed settings). Everybody agree?
I have replaced dropdown select with checkbox like for error rtace assumptions and set it to false by default.
Updated by Evgeny Novikov over 7 years ago
Vladimir Gratinskiy wrote:
Evgeny Novikov wrote:
Evgeny Novikov wrote:
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
The latter wasn't implemented. Why we need a list of choices containing of two Boolean variants?
I have to delete button "hide/show" data on coverage page to implement this feature (hide data on page refresh if user changed settings). Everybody agree?
I don't ask to do this anymore. I just said about the second part of this feature: "Also I suggest to make it like for error trace assumptions.".
I have replaced dropdown select with checkbox like for error rtace assumptions and set it to false by default.
It was likely done and many excessive things were removed (before this setting was likely intended for more than 2 choices but it turned out that it always has just 2 ones). But I got the following exception when migrating a database:
manage.py@bridge > migrate bash -cl "/home/novikov/.pyenv/versions/virtual-env-3.6.1/bin/python /home/novikov/work/pycharm-2017.1.1/helpers/pycharm/django_manage.py migrate /home/novikov/work/klever/bridge" CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0010_auto_comparison_user, 0011_reportcomponent_coverage_arch in reports). To fix them run 'python manage.py makemigrations --merge'
Please, do all related improvements and fixes in branch coverage_and_bridge since it combines everything related with coverage.
Updated by Evgeny Novikov over 7 years ago
Evgeny Novikov wrote:
Vladimir Gratinskiy wrote:
Evgeny Novikov wrote:
Evgeny Novikov wrote:
- A user setting to hide a coverage data doesn't work. Also I suggest to make it like for error trace assumptions.
The latter wasn't implemented. Why we need a list of choices containing of two Boolean variants?
I have replaced dropdown select with checkbox like for error rtace assumptions and set it to false by default.
It was likely done and many excessive things were removed (before this setting was likely intended for more than 2 choices but it turned out that it always has just 2 ones). But I got the following exception when migrating a database:
[...]
Likely this conflict exists after merging branch feature_8007 to master and master to branch coverage_and_bridge. Since feature_8007 is already in master migrations from coverage_and_bridge should be rebased.
Updated by Evgeny Novikov over 7 years ago
- Status changed from New to Closed