Try to avoid writing NaN to the junit output XML when the spec is skipped (or perhaps some other cases).  NaN in an int field causes most XML parsers to fail.
In this cases, Sonar would not process the results.