|
|
|
[
Permlink
| « Hide
]
Andrei Oprea - 20 Dec 07 22:16
Just noticed that the coverage data seems to be correct. For the class in the screenshot, the coverage information in the project tree shows 100% methods, 100% lines covered. So it looks like only the gutter display is faulty.
It got worse, actually.
Most of the classes show the "coverage data outdated" label at the top and show no coverage in the gutter whatsoever. The tree structure does display coverage info (and selecting different coverage data does seem to be applied, even for the teamcity produced info), but I see now way to get rid of the outdated warning, it stays there even after a fresh run. I don't see any pattern when it comes to the files reporting outdated coverage, it happens for most files in every package, with the exception of a few, that seem to be OK for no apparent reason. Outdated coverage label is based on Local History. If it is able to create correspondence between current line numbers and ones from coverage run time then it is ok otherwise you can see this 'outdated' label. So my question is - do you have any exceptions in idea.log?
Thank you Nope, no errors in the log. Loads of info coming from the CommittedChangesCache about changelists, but nothing suspect related to local history.
I'm seeing this issue as well. For a file that has not changed in a month, there is no Local History and therefore no code coverage is displayed. In another file in the same directory that I edited, it works fine. Editing the file and reverting the change causes a Local History entry to be created and then code coverage is displayed.
I can't seem to get rid of the 'coverage data outdated' problem either, no matter how many times I rerun the coverage ... linking it to local history seems incorrect; it shouldn't have anything to do with when a file was last modified - I should just see my coverage data, period.
I'm seeing this too. Linking it to local history doesn't seem entirely wrong, it's just that if there is no local history it should Just Show It.
It's weird that putting a project-wide label doesn't create some history for all files though, otherwise that would have been a marvellous workaround for this bug. Is there some other way to do this without iterating through each file? I can confirm this bug in Idea 7.0.3 (Linux). Touching a file (e.g. editing and reverting the change back) works for me...
I'm seeing this as well (7.0.3, windows).
I can confirm that making a small change to the file fixes this. The next time the tests are run, coverage data comes back. Making a change and then "reverting" it by simply erasing the change does not work. I'm not using configuration control (just files in a project by itself). Local history is set to the default (3 days with everything turned on). Mike It still happens on Selena 7821 on Windows. Same symptoms, same results. The idea log shows nothing even remotely suspicious.
|
||||||||||||||||||||||||||||||||||||||||||||||||||