Extenability of S2699? (Tests should include assertions)

java

(Tobias Gruetzmacher) #1

Hi,

(This is sorta followup to https://groups.google.com/forum/#!topic/sonarqube/Mznxgg5Ek-c)

Currently, someone needs to extend Sonar-Java whenever S2699 needs to support a new assertion framework or a new feature of an existing assertion framework. Wouldn’t it be better if assertion frameworks could annotate their annotation methods/classes somehow, so Sonar-Java could automatically support new assertions, if a project uses a current version of a such-extened assertion framework.

WDYT?

Regards, Tobias


(Alexandre Gigleux) #5

Hello @TobiX,

We finally decided to go for adding a parameter allowing a user to configure extra assertion frameworks.

Here is the ticket: https://jira.sonarsource.com/browse/SONARJAVA-2927

Regards