realm/SwiftCov is a Swift project with 560 stars. A tool to generate test code coverage information for Swift.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A tool to generate test code coverage information for Swift.
This project has been entirely obsoleted by the native code coverage generation support available in Swift 2 onwards. It is therefore no longer maintained or supported.
Installation
Install the swiftcov command line tool by running git clone for this repo followed by make install in the root directory.
Usage
$ swiftcov help
Available commands:
generate Generate test code coverage files for your Swift tests
help Display general or command-specific help
version Display the current version of SwiftCov
generate
Run the tests and generate code coverage files. You can write any xcodebuild command as arguments for testing your project.
Use the --output parameter to specify a destination directory for the coverage files.
If you think the coverage generation process is slow, you can specify the threshold option. It makes running faster to limit the count of the number of executions.
Currently, the default value of threshold option is 1 for performance reasons. Since some test cases may take a very long time generating coverage data, especially if some code paths are frequently hit (as is the case with loops).
--output OUTPUT_DIR specify output directory for generated coverage files.
--threshold LIMIT_COUNT specify the maximum number of hits you wish to measure. Reducing this number can drastically speed up SwiftCov.
--debug Output very verbose progress messages.
-- [swift files] Pass a space-separated list of files for which to measure code coverage, with either relative or absolute paths, after the -- at the end of your command. e.g.
SwiftCov traces the execution of your test code using LLDB by following these steps:
Set breakpoints in all lines of target's source code.
(Those breakpoints only record when they are triggered. They do not stop the tests from running.)
Run the tests with LLDB attached.
After the tests have completed, collect the number of times each breakpoint was hit and generate .gcov files from those results.
Limitations
Running on iOS devices is not supported (Simulator or OS X only)
Application projects are not supported (Framework projects only)
Running on Travis CI is not supported (It works on Circle CI!)
Debugging SwiftCov is not supported. If you launch SwiftCov from Xcode, it may fail. https://github.com/realm/SwiftCov/issues/6
Make sure you do not debug for the same target. It may fail since multiple debuggers cannot attach same target.
No homepage URL was recorded for realm/SwiftCov in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does realm/SwiftCov have any tags?
TopGit's last sync did not record any GitHub topics for realm/SwiftCov. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on realm/SwiftCov?
The most recent commit recorded on realm/SwiftCov was 9.3 years ago, based on the GitHub push timestamp. The repository has 37 forks — one of the better signals of community interest.
How many stars does realm/SwiftCov have?
realm/SwiftCov has 560 GitHub stars — refresh the page for the live number, or check github.com/realm/SwiftCov. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is realm/SwiftCov open source?
Yes — realm/SwiftCov ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/realm/SwiftCov.
Where do I read more about realm/SwiftCov?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/realm/SwiftCov is the definitive source.
Read full README in the tab above.
Still deciding about SwiftCov?
One click hands the question to an AI along with this page — see what it says about SwiftCov.