realm/SwiftCov hiện có 560 sao trên GitHub, viết chủ yếu bằng Swift. A tool to generate test code coverage information for Swift.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/realm/SwiftCov là nguồn chính thức.
realm/SwiftCov có bao nhiêu sao?
realm/SwiftCov có 560 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/realm/SwiftCov. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
realm/SwiftCov có phải mã nguồn mở không?
Có — realm/SwiftCov phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/realm/SwiftCov.
realm/SwiftCov có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho realm/SwiftCov. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
realm/SwiftCov có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho realm/SwiftCov. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
realm/SwiftCov còn đang phát triển không?
Commit gần nhất trên realm/SwiftCov là 9.3 năm trước (theo timestamp GitHub). Repo có 37 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
SwiftCov có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về SwiftCov.