Skip to content

Commit b2c77d0

Browse files
authored
Merge branch 'main' into feature/print_unused_steps
2 parents a36cb92 + f5e0631 commit b2c77d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1594
-380
lines changed

.github/workflows/static-analysis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
env:
4343
GTEST_OUTPUT: "xml:${{ github.workspace }}/testresults/"
4444

45+
- name: Run acceptance tests
46+
run: |
47+
bats --formatter junit cucumber_cpp/acceptance_test/coverage.bats | tee test-report.xml
48+
4549
- name: Collect coverage
4650
run: |
4751
gcovr --sonarqube=coverage.xml --exclude-lines-by-pattern '.*assert\(.*\);|.*really_assert\(.*\);|.*std::abort();' --exclude-unreachable-branches --exclude-throw-branches -j "$(nproc)" --exclude=.*/example/.* --exclude=.*/external/.* --exclude=.*/test/.*
@@ -56,7 +60,7 @@ jobs:
5660
run: |
5761
cp .build/Coverage/compile_commands.json compile_commands.json
5862
59-
- uses: sonarsource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5.3.1
63+
- uses: sonarsource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0
6064
env:
6165
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6266

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@keyword-asterisk",
1515
"@result:UNDEFINED",
1616
"@result:FAILED",
17+
"@result:OK",
1718
"@fail_feature"
1819
]
1920
},
@@ -58,6 +59,24 @@
5859
"ignoreFailures": true
5960
}
6061
]
62+
},
63+
{
64+
"name": "(gdb) Debug Test",
65+
"type": "cppdbg",
66+
"request": "launch",
67+
"program": "${command:cmake.launchTargetPath}",
68+
"stopAtEntry": false,
69+
"cwd": "${workspaceFolder}",
70+
"environment": [],
71+
"externalConsole": false,
72+
"MIMode": "gdb",
73+
"setupCommands": [
74+
{
75+
"description": "Enable pretty-printing for gdb",
76+
"text": "-enable-pretty-printing",
77+
"ignoreFailures": true
78+
}
79+
]
6180
}
6281
]
6382
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"sonarlint.connectedMode.project": {
2525
"connectionId": "philips-software",
2626
"projectKey": "philips-software_amp-cucumber-cpp-runner"
27-
}
27+
},
28+
"cmake.postRunCoverageTarget": "generate-coverage-report"
2829
}

CMakePresets.json

Lines changed: 135 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,138 @@
11
{
2-
"version": 6,
3-
"cmakeMinimumRequired": {
4-
"major": 3,
5-
"minor": 24,
6-
"patch": 0
7-
},
8-
"configurePresets": [
9-
{
10-
"name": "defaults",
11-
"hidden": true,
12-
"binaryDir": "${sourceDir}/.build/${presetName}",
13-
"installDir": "${sourceDir}/.install/${presetName}",
14-
"cacheVariables": {
15-
"CMAKE_EXPORT_COMPILE_COMMANDS": "On",
16-
"CMAKE_CONFIGURATION_TYPES": "Debug;Release"
17-
}
2+
"version": 6,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 24,
6+
"patch": 0
187
},
19-
{
20-
"name": "Coverage",
21-
"inherits": "defaults",
22-
"generator": "Ninja",
23-
"cacheVariables": {
24-
"CMAKE_BUILD_TYPE": "Debug",
25-
"CCR_ENABLE_COVERAGE": "On"
26-
}
27-
},
28-
{
29-
"name": "Host",
30-
"inherits": "defaults",
31-
"generator": "Ninja Multi-Config"
32-
},
33-
{
34-
"name": "host-single-Debug",
35-
"displayName": "Configuration for Host Tooling and Tests, Single Config Generator, Debug",
36-
"inherits": "defaults",
37-
"cacheVariables": {
38-
"CMAKE_BUILD_TYPE": "Debug"
39-
}
40-
},
41-
{
42-
"name": "Host-Iwyu",
43-
"inherits": "defaults",
44-
"cacheVariables": {
45-
"CMAKE_CXX_INCLUDE_WHAT_YOU_USE": "include-what-you-use;-Wno-unknown-warning-option;-Xiwyu;--no_comments;-Xiwyu;--cxx17ns;-Xiwyu;--no_fwd_decls"
46-
},
47-
"generator": "Ninja Multi-Config"
48-
},
49-
{
50-
"name": "Windows",
51-
"inherits": "defaults",
52-
"toolchainFile": "${sourceDir}/cmake/toolchain-clang-x86_64-pc-windows-msvc.cmake",
53-
"environment": {
54-
"CCACHE_DEPEND": "true",
55-
"CCACHE_COMPILERTYPE": "clang-cl"
56-
},
57-
"generator": "Ninja Multi-Config"
58-
}
59-
],
60-
"buildPresets": [
61-
{
62-
"name": "Coverage",
63-
"configurePreset": "Coverage"
64-
},
65-
{
66-
"name": "Host-Release",
67-
"configuration": "Release",
68-
"configurePreset": "Host"
69-
},
70-
{
71-
"name": "Host-Debug",
72-
"configuration": "Debug",
73-
"configurePreset": "Host"
74-
},
75-
{
76-
"name": "Host-Iwyu-Debug",
77-
"configuration": "Debug",
78-
"configurePreset": "Host-Iwyu"
79-
},
80-
{
81-
"name": "host-single-Debug",
82-
"configuration": "Debug",
83-
"configurePreset": "host-single-Debug"
84-
},
85-
{
86-
"name": "Windows-Release",
87-
"configuration": "Release",
88-
"configurePreset": "Windows"
89-
},
90-
{
91-
"name": "Windows-RelWithDebInfo",
92-
"configuration": "RelWithDebInfo",
93-
"configurePreset": "Windows"
94-
}
95-
],
96-
"testPresets": [
97-
{
98-
"name": "defaults",
99-
"hidden": true,
100-
"output": {
101-
"outputOnFailure": true
102-
},
103-
"execution": {
104-
"noTestsAction": "error",
105-
"stopOnFailure": true
106-
}
107-
},
108-
{
109-
"name": "Coverage",
110-
"configurePreset": "Coverage",
111-
"configuration": "Debug",
112-
"inherits": "defaults"
113-
},
114-
{
115-
"name": "Host-Debug",
116-
"configurePreset": "Host",
117-
"configuration": "Debug",
118-
"inherits": "defaults"
119-
},
120-
{
121-
"name": "Host-Release",
122-
"configurePreset": "Host",
123-
"configuration": "Release",
124-
"inherits": "defaults"
125-
},
126-
{
127-
"name": "host-single-Debug",
128-
"configurePreset": "host-single-Debug",
129-
"configuration": "Debug",
130-
"inherits": "defaults"
131-
}
132-
]
8+
"configurePresets": [
9+
{
10+
"name": "defaults",
11+
"hidden": true,
12+
"binaryDir": "${sourceDir}/.build/${presetName}",
13+
"installDir": "${sourceDir}/.install/${presetName}",
14+
"cacheVariables": {
15+
"CMAKE_EXPORT_COMPILE_COMMANDS": "On",
16+
"CMAKE_CONFIGURATION_TYPES": "Debug;RelWithDebInfo;Release"
17+
}
18+
},
19+
{
20+
"name": "Coverage",
21+
"inherits": "defaults",
22+
"generator": "Ninja",
23+
"cacheVariables": {
24+
"CMAKE_BUILD_TYPE": "Debug",
25+
"CCR_ENABLE_COVERAGE": "On"
26+
}
27+
},
28+
{
29+
"name": "Host",
30+
"inherits": "defaults",
31+
"generator": "Ninja Multi-Config"
32+
},
33+
{
34+
"name": "host-single-Debug",
35+
"displayName": "Configuration for Host Tooling and Tests, Single Config Generator, Debug",
36+
"inherits": "defaults",
37+
"cacheVariables": {
38+
"CMAKE_BUILD_TYPE": "Debug"
39+
}
40+
},
41+
{
42+
"name": "Host-Iwyu",
43+
"inherits": "defaults",
44+
"cacheVariables": {
45+
"CMAKE_CXX_INCLUDE_WHAT_YOU_USE": "include-what-you-use;-Wno-unknown-warning-option;-Xiwyu;--no_comments;-Xiwyu;--cxx17ns;-Xiwyu;--no_fwd_decls"
46+
},
47+
"generator": "Ninja Multi-Config"
48+
},
49+
{
50+
"name": "Windows",
51+
"inherits": "defaults",
52+
"toolchainFile": "${sourceDir}/cmake/toolchain-clang-x86_64-pc-windows-msvc.cmake",
53+
"environment": {
54+
"CCACHE_DEPEND": "true",
55+
"CCACHE_COMPILERTYPE": "clang-cl"
56+
},
57+
"generator": "Ninja Multi-Config"
58+
}
59+
],
60+
"buildPresets": [
61+
{
62+
"name": "Coverage",
63+
"configurePreset": "Coverage"
64+
},
65+
{
66+
"name": "Host-Release",
67+
"configuration": "Release",
68+
"configurePreset": "Host"
69+
},
70+
{
71+
"name": "Host-Debug",
72+
"configuration": "Debug",
73+
"configurePreset": "Host"
74+
},
75+
{
76+
"name": "Host-Iwyu-Debug",
77+
"configuration": "Debug",
78+
"configurePreset": "Host-Iwyu"
79+
},
80+
{
81+
"name": "host-single-Debug",
82+
"configuration": "Debug",
83+
"configurePreset": "host-single-Debug"
84+
},
85+
{
86+
"name": "Windows-Release",
87+
"configuration": "Release",
88+
"configurePreset": "Windows"
89+
},
90+
{
91+
"name": "Windows-RelWithDebInfo",
92+
"configuration": "RelWithDebInfo",
93+
"configurePreset": "Windows"
94+
},
95+
{
96+
"name": "Windows-Debug",
97+
"configuration": "Debug",
98+
"configurePreset": "Windows"
99+
}
100+
],
101+
"testPresets": [
102+
{
103+
"name": "defaults",
104+
"hidden": true,
105+
"output": {
106+
"outputOnFailure": true
107+
},
108+
"execution": {
109+
"noTestsAction": "error",
110+
"stopOnFailure": true
111+
}
112+
},
113+
{
114+
"name": "Coverage",
115+
"configurePreset": "Coverage",
116+
"configuration": "Debug",
117+
"inherits": "defaults"
118+
},
119+
{
120+
"name": "Host-Debug",
121+
"configurePreset": "Host",
122+
"configuration": "Debug",
123+
"inherits": "defaults"
124+
},
125+
{
126+
"name": "Host-Release",
127+
"configurePreset": "Host",
128+
"configuration": "Release",
129+
"inherits": "defaults"
130+
},
131+
{
132+
"name": "host-single-Debug",
133+
"configurePreset": "host-single-Debug",
134+
"configuration": "Debug",
135+
"inherits": "defaults"
136+
}
137+
]
133138
}

0 commit comments

Comments
 (0)