asp.net web api - SonarQube Web API -


im not able retrive expected result sonarqube web api.

i use request: api/tests/list

my goal information test specific line covers. need "sourcefileid" , "sourcefilelinenumber"

this java class:

1    public class arithmeticoperations { 2         public integer add(integer a, integer b) 3        { 4            return a+b; 5        } 6        public integer sub(integer a, integer b) 7        { 8            return a-b; 9        } 10    } 

line 1,4,7 covered unit test says sonarqube ui.

the "sourcefileid" , "sourcefilelinenumber":

{     paging :     {         pageindex : 1,         pagesize : 100,         total : 1     },     basecomponent :     {         id : "av51mbqsvxi8rrr2yqyf",         key : "xx.xxxxxxx:sonarqubeexample",         name : "sonarqubeexample",         qualifier : "trk"     },     components :     [         0 :         {             id : "av51mbovt2kd__rvqiql",             key : "xx.xxxxxx:sonarqubeexample:src/main/java/arithmeticoperations.java",             name : "arithmeticoperations.java",             qualifier : "fil",             path : "src/main/java/arithmeticoperations.java",             language : "java"         }     ] } 

this request , result:

http://localhost:9000/api/tests/list?sourcefileid=av51mbovt2kd__rvqiql&sourcefilelinenumber=8

http://localhost:9000/api/tests/list?sourcefilekey=xx.xxxxx:sonarqubeexample:src/main/java/arithmeticoperations.java&sourcefilelinenumber=8

{     paging :     {         pageindex : 1,         pagesize : 100,         total : 0     },     tests :     [] } 

i tried serveral lines , one.

the result same.

can help?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -