File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
integration-tests/features Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1414 - SONARHOME=/tmp/sonarqube-7.3 SONARAPI=SqApi67
1515 - SONARHOME=/tmp/sonarqube-7.4 SONARAPI=SqApi67
1616 - SONARHOME=/tmp/sonarqube-7.5 SONARAPI=SqApi75
17+ - SONARHOME=/tmp/sonarqube-7.6 SONARAPI=SqApi76
1718
1819matrix :
1920 fast_finish : true
@@ -61,6 +62,8 @@ install:
6162 - unzip -qq sonarqube-7.4.zip
6263 - travis_retry wget -q https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.5.zip
6364 - unzip -qq sonarqube-7.5.zip
65+ - travis_retry wget -q https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.6.zip
66+ - unzip -qq sonarqube-7.6.zip
6467 - travis_retry wget -q https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492.zip
6568 - unzip -qq sonar-scanner-cli-3.3.0.1492.zip
6669 - travis_retry wget -q https://github.com/htacg/tidy-html5/archive/5.6.0.zip --output-document=tidy-html5.zip
Original file line number Diff line number Diff line change @@ -82,3 +82,43 @@ Feature: Smoketest
8282 | test_failures | 2 |
8383 | test_errors | 0 |
8484 | tests | 4 |
85+
86+ @SqApi76
87+ Scenario : Smoketest
88+ Given the project "smoketest_project"
89+ When I run "sonar-scanner -X"
90+ Then the analysis finishes successfully
91+ And the analysis in server has completed
92+ And the analysis log contains no error/warning messages except those matching:
93+ """
94+ .*WARN.*Unable to get a valid mac address, will use a dummy address
95+ .*WARN.*cannot find the sources for '#include <gtest/gtest\.h>'
96+ .*WARN.*cannot find the sources for '#include <iostream>'
97+ .*WARN.*Cannot find the file '.*component_XXX.cc', skipping violations
98+ .*WARN.*Cannot find a report for '.*'
99+ .*WARN.*Already created edge from 'src/cli/main.cc'.*
100+ """
101+ And the following metrics have following values:
102+ | metric | value |
103+ | ncloc | 56 |
104+ | lines | 151 |
105+ | statements | 36 |
106+ | classes | 1 |
107+ | files | 8 |
108+ | directories | 5 |
109+ | functions | 5 |
110+ | comment_lines_density | 30 |
111+ | comment_lines | 24 |
112+ | duplicated_lines_density | 45 .7 |
113+ | duplicated_lines | 84 |
114+ | duplicated_blocks | 2 |
115+ | duplicated_files | 2 |
116+ | complexity | 7 |
117+ | file_complexity | 0 .9 |
118+ | violations | 12 |
119+ | coverage | 53 .8 |
120+ | line_coverage | 54 .8 |
121+ | branch_coverage | 50 |
122+ | test_failures | 2 |
123+ | test_errors | 0 |
124+ | tests | 4 |
You can’t perform that action at this time.
0 commit comments