|
1 | | -#Feature: cpp-multimodule-project |
2 | | -# |
3 | | -# Test multimodule project with reports at root of the project |
4 | | -# |
5 | | -# Scenario: cpp-multimodule-project-2 |
6 | | -# GIVEN the project "cpp-multimodule-project-2" |
7 | | -# WHEN I run "sonar-runner -X" |
8 | | -# THEN the analysis finishes successfully |
9 | | -# AND the analysis in server has completed |
10 | | -# AND the analysis log contains no error/warning messages except those matching: |
11 | | -# """ |
12 | | -# .*WARN.*Unable to get a valid mac address, will use a dummy address |
13 | | -# .*WARN.*cannot find the sources for '#include <gtest/gtest\.h>' |
14 | | -# .*WARN.*cannot find the sources for '#include <iostream>' |
15 | | -# .*WARN - Cannot find the file '.*', skipping violations |
16 | | -# .*WARN.*to create a dependency with .* |
17 | | -# .*WARN - the include root '.*' doesn't exist |
18 | | -# .*WARN - .* cannot find the sources for .* |
19 | | -# .*WARN - SCM provider autodetection failed.* |
20 | | -# .*WARN.*Cannot find a report for '.*' |
21 | | -# .*WARN.*- File access Failed '.*' |
22 | | -# .*WARN.* A multi-module project can't have source folders, so '.*' |
23 | | -# .*ERROR.*Invalid report baseDir '.*' |
24 | | -# .*ERROR.*Using module base failed to find Path '.*' |
25 | | -# """ |
26 | | -# AND the following metrics have following values: |
27 | | -# | metric | value | |
28 | | -# # size metrics |
29 | | -# | ncloc | 12 | |
30 | | -# | lines | 14 | |
31 | | -# | statements | 4 | |
32 | | -# | classes | 0 | |
33 | | -# | files | 6 | |
34 | | -# | directories | 4 | |
35 | | -# | functions | 4 | |
36 | | -# # complexity |
37 | | -# | complexity | 4 | |
38 | | -# | function_complexity | 1.0 | |
39 | | -# | file_complexity | 0.7 | |
40 | | -# # violations |
41 | | -# | violations | 4 | |
| 1 | +Feature: cpp-multimodule-project |
42 | 2 |
|
| 3 | + Test multimodule project with reports at root of the project |
43 | 4 |
|
| 5 | + Scenario: cpp-multimodule-project-2 |
| 6 | + |
| 7 | + GIVEN the project "cpp-multimodule-project-2" |
| 8 | + and platform is not "Windows" |
| 9 | + |
| 10 | + WHEN I run "sonar-runner -X" |
| 11 | + THEN the analysis finishes successfully |
| 12 | + AND the analysis in server has completed |
| 13 | + AND the analysis log contains no error/warning messages except those matching: |
| 14 | + """ |
| 15 | + .*WARN.*Unable to get a valid mac address, will use a dummy address |
| 16 | + .*WARN.*cannot find the sources for '#include <gtest/gtest\.h>' |
| 17 | + .*WARN.*cannot find the sources for '#include <iostream>' |
| 18 | + .*WARN - Cannot find the file '.*', skipping violations |
| 19 | + .*WARN.*to create a dependency with .* |
| 20 | + .*WARN - the include root '.*' doesn't exist |
| 21 | + .*WARN - .* cannot find the sources for .* |
| 22 | + .*WARN - SCM provider autodetection failed.* |
| 23 | + .*WARN.*Cannot find a report for '.*' |
| 24 | + .*WARN.*- File access Failed '.*' |
| 25 | + .*WARN.* A multi-module project can't have source folders, so '.*' |
| 26 | + .*ERROR.*Invalid report baseDir '.*' |
| 27 | + .*ERROR.*Using module base failed to find Path '.*' |
| 28 | + """ |
| 29 | + AND the following metrics have following values: |
| 30 | + | metric | value | |
| 31 | + # size metrics |
| 32 | + | ncloc | 12 | |
| 33 | + | lines | 14 | |
| 34 | + | statements | 4 | |
| 35 | + | classes | 0 | |
| 36 | + | files | 6 | |
| 37 | + | directories | 4 | |
| 38 | + | functions | 4 | |
| 39 | + # complexity |
| 40 | + | complexity | 4 | |
| 41 | + | function_complexity | 1.0 | |
| 42 | + | file_complexity | 0.7 | |
| 43 | + # violations |
| 44 | + | violations | 4 | |
0 commit comments