Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
CMakeLists.txt
test/CMakeLists.txt
+1
-2
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