Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ContinuousTest / Moose : Here Be Dragons and general overlay questions

Has anyone ever come across the Here Be Dragons warning in Mighty Moose / ContinuousTests? enter image description here

This was placed beside a private method, probably because it's private and thus not easily testable - you might need magic armor to get this tested. Anyway, I also found this on the setter of a property, so I tried to reproduce it. Now I don't see any test run indicators beside my code anymore at all.

How can I get those back? What are the conditions for showing up? Thanks in advance!

like image 656
Sebastian Edelmeier Avatar asked Jan 03 '13 12:01

Sebastian Edelmeier


1 Answers

The reason why you are seeing this message is that ContinuousTests takes a lot more than test coverage into account when giving feedback. With the margins that you see there you can get either green, yellow or red. Green means that changing this code is fairly safe. Yellow means that there is a bit of a risk changing that piece of code. Red means that if you change this code you are on your own. There is a good chance something will break if it is changed. If you hover over the icon you can see some statistics about the risk. If you right-click and choose "ContinuousTests->Get Affected Graph" you will see the coupling graph for this piece of code.

When the "here be dragons" message is shown it means that the code you are looking at is referenced at a lot of places in the code and no tests seems to be coupled to it or what is referencing it. So changing that code you are risking not only breaking that method but also breaking everything that indirectly uses it.

Hope that explains it.

like image 97
ack Avatar answered Sep 17 '22 13:09

ack