Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
0a1ddd68
Unverified
Commit
0a1ddd68
authored
Apr 05, 2019
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⬆
updated fastcov
parent
4676f759
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
test/CMakeLists.txt
test/CMakeLists.txt
+1
-2
test/thirdparty/fastcov/fastcov.py
test/thirdparty/fastcov/fastcov.py
+1
-1
No files found.
test/CMakeLists.txt
View file @
0a1ddd68
...
...
@@ -55,8 +55,7 @@ if(JSON_Coverage)
# add target to collect coverage information and generate HTML file
# (filter script from https://stackoverflow.com/a/43726240/266378)
add_custom_target
(
lcov_html2
COMMAND
${
CMAKE_SOURCE_DIR
}
/test/thirdparty/fastcov/fastcov.py --branch-coverage --lcov -o json.info --gcov
${
GCOV_BIN
}
COMMAND gsed -i 's%build_coverage/%%g' json.info
COMMAND
${
CMAKE_SOURCE_DIR
}
/test/thirdparty/fastcov/fastcov.py --branch-coverage --lcov -o json.info --gcov
${
GCOV_BIN
}
--compiler-directory
${
CMAKE_BINARY_DIR
}
#--source-files ${SOURCE_FILES}
COMMAND
${
CMAKE_SOURCE_DIR
}
/test/thirdparty/imapdl/filterbr.py json.info > json.info.filtered.noexcept
COMMAND genhtml --title
"JSON for Modern C++"
--legend --demangle-cpp --output-directory html --show-details --branch-coverage json.info.filtered.noexcept
COMMENT
"Generating HTML report test/html/index.html"
...
...
test/thirdparty/fastcov/fastcov.py
View file @
0a1ddd68
...
...
@@ -61,7 +61,7 @@ def getFilteredGcdaFiles(gcda_files, exclude):
def
getGcdaFiles
(
cwd
,
gcda_files
):
if
not
gcda_files
:
gcda_files
=
glob
.
glob
(
os
.
path
.
join
(
cwd
,
"**/*.gcda"
),
recursive
=
True
)
gcda_files
=
glob
.
glob
(
os
.
path
.
join
(
os
.
path
.
abspath
(
cwd
)
,
"**/*.gcda"
),
recursive
=
True
)
return
gcda_files
def
gcovWorker
(
cwd
,
gcov
,
files
,
chunk
,
gcov_filter_options
,
branch_coverage
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment