-
Notifications
You must be signed in to change notification settings - Fork 1
Add ability to ignore everything listed in a specified file. #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
aaaaa3d
af4284b
2ebd2d8
97fffde
8830250
9af0ee8
5b4f3b0
7097807
6f92efd
34a1615
42ec5aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ report_values() { | |
echo "SRCROOT : ${SRCROOT}" | ||
echo "OBJ_DIR : ${OBJ_DIR}" | ||
echo "LCOV_PATH : ${LCOV_PATH}" | ||
echo "IGNORED : ${XCODECOV_IGNORED_PATHS}" | ||
} | ||
|
||
remove_old_report() { | ||
|
@@ -112,7 +113,13 @@ exclude_data() { | |
|
||
LCOV --remove "${LCOV_INFO}" "Developer/SDKs/*" -d "${OBJ_DIR}" -o "${LCOV_INFO}" | ||
LCOV --remove "${LCOV_INFO}" "main.m" -d "${OBJ_DIR}" -o "${LCOV_INFO}" | ||
# Remove other patterns here... | ||
|
||
#Remove anything the .xcodecoverageignore file has specified should be ignored. | ||
(cat "${SRCROOT}/.xcodecoverageignore"; echo) | while read IGNORE_THIS; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any interest in allowing for comments (lines starting with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but for right now it just does nada if it can't find the given file, so Might be nice to add that in the future though. |
||
#use eval to expand any of the variables and then pass them to the shell - this allows | ||
#use of wildcards in the variables. | ||
eval LCOV --remove "${LCOV_INFO}" "${IGNORE_THIS}" -d "${OBJ_DIR}" -o "${LCOV_INFO}" | ||
done | ||
} | ||
|
||
generate_cobertura_xml() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do absolute paths work or do paths have to be relative to
SRCROOT
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They don't have to be - the actual
.xcodecoverageignore
file has to be relative toSRCROOT
, but you can put whatever you damn well please in the file itself.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also be able to use the
*
for file pattern matching, yes?e.g. put
_*.m
to exclude mogenerator filesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should definitely be doable, but I haven't tested it.