Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 096024a83b

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README
amber.png
cov.py
emerald.png
gcov.css
glass.png
regenerate-coverage-display
ruby.png
run-generate-coverage-data
snow.png

README

Generate coverage on Mac

call Tools/Script/generate-coverage-data

or by hand


# delete
find . -name '*.gcda' -delete

# build, -framework CoreFoundation might suffice as well
Tools/Scripts/build-webkit GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES EXTRA_LINK=" -ftest-coverage -fprofile-arcs" OTHER_CFLAGS=" -MD " OTHER_LDFLAGS=" -ftest-coverage -fprofile-arcs -framework AppKit"
Tools/Scripts/run-webkit-tests
Tools/Scripts/run-javascriptcore-tests GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES EXTRA_LINK=" -ftest-coverage -fprofile-arcs" OTHER_CFLAGS=" -MD " OTHER_LDFLAGS=" -ftest-coverage -fprofile-arcs -framework AppKit"


# Collect files
Tools/CodeCoverage/run-generate-coverage-data <RUN_ID> ../coverage-results/


# Generate graph
Tools/CodeCoverage/regenerate-coverage-display ../coverage-results/ ../coverage-results/html
Something went wrong with that request. Please try again.