Skip to content
Permalink
Browse files

fix bug of missing @SqApi76 in integration tests

- was wondering why SqApi76 is so fast?
  • Loading branch information...
guwirth committed Feb 16, 2019
1 parent cc1d480 commit 6e89b6e3436d03f35eeec1c068d543ae34507e4c
@@ -1,4 +1,4 @@
@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Feature: Importing Clang Static Analyzer reports
As a SonarQube user,
I want to import the Clang Static Analyzer reports into SonarQube.
@@ -1,4 +1,4 @@
@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Feature: Importing Clang Static Analyzer scan-build reports

As a SonarQube user,
@@ -3,7 +3,7 @@ Feature: Importing coverage data
I want to import my coverage metric values into SonarQube
In order to be able to use relevant SonarQube features

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario: Importing coverage reports
Given the project "coverage_project"
When I run sonar-scanner with following options:
@@ -23,7 +23,7 @@ Feature: Importing coverage data
| line_coverage | 25.0 |
| branch_coverage | 50 |

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario: Zero coverage measures without coverage reports
If we don't pass coverage reports all coverage measures, except the branch
ones, should be 'zero'. The branch coverage measures remain 'None'
@@ -4,7 +4,7 @@ Feature: Importing Cppcheck reports
In order to have all static code checking results in one place,
work with them, filter them etc. and derive metrics from them.

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario: The reports are missing
Given the project "cppcheck_project"
When I run "sonar-scanner -X -Dsonar.cxx.cppcheck.reportPath=empty.xml"
@@ -30,7 +30,7 @@ Feature: Importing Cppcheck reports
"""
And the number of violations fed is 0

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario: The reports use paths relative to directories listed in sonar.sources
Given the project "cppcheck_project"
When I run "sonar-scanner -X -Dsonar.cxx.cppcheck.reportPath=relative-to-src.xml"
@@ -43,7 +43,7 @@ Feature: Importing Cppcheck reports
"""
And the number of violations fed is 0

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario: The reports and issues in the reports have absolute paths
Given the project "cppcheck_with_absolute_paths_project"
And platform is not "Windows"
@@ -53,7 +53,7 @@ Feature: Importing Cppcheck reports
And the server log (if locatable) contains no error/warning messages
And the number of violations fed is 6

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario Outline: The reports are invalid
Given the project "cppcheck_project"
When I run "sonar-scanner -X -Dsonar.cxx.cppcheck.reportPath=<reportpath>"
@@ -70,7 +70,7 @@ Feature: Importing Cppcheck reports
| unparsable.xml | 0 |
| wrongly_encoded.xml | 0 |

@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Scenario Outline: Importing Cppcheck reports
Given the project "cppcheck_project"
When I run "sonar-scanner -X -Dsonar.cxx.cppcheck.reportPath=<reportpath>"
@@ -1,4 +1,4 @@
@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Feature: cpp-multimodule-project
Test multimodule project with reports at root of the project

@@ -1,4 +1,4 @@
@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Feature: GoogleTestWithBullseyeAndVsProject
This test verifies that analysis is able to import bullseye coverage reports and import custom rules reports.
Custom rules are created using Rest API, after test ends rules are deleted.
@@ -1,4 +1,4 @@
@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Feature: Providing test execution numbers
As a SonarQube user,
I want to import the test execution reports into SonarQube
@@ -1,4 +1,4 @@
@SqApi67 @SqApi75
@SqApi67 @SqApi75 @SqApi76
Feature: Importing Cppcheck ANSI-C reports

Scenario Outline: Importing cppcheck issues when c language issues are in report.

0 comments on commit 6e89b6e

Please sign in to comment.
You can’t perform that action at this time.