Allow report to be generated from a swift package with no Xcode project

Đang mở
#466 5 bình luận 28 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ruby, swift
Lĩnh vực
devtools, testing-qa

Hướng nghiên cứu

Read the Slather entry points that enforce the Xcode project requirement and trace how report inputs are parsed. The issue points to coverage output from swift test --enable-code-coverage in .build/debug/codecov, especially the package JSON file. Compare its available coverage data with Slather’s report formats; done means a Swift package without an Xcode project can generate a report from that data.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

There is a hard requirement for an Xcode project with slather.

Swift packages can generate their code coverage from a command-line build using swift test --enable-code-coverage
with the results written to the .build/debug/codecov folder.

That folder contains three files:

  • PackageName.json
  • default.profdata
  • default_build_ID_.profraw

The information can be parsed from the json file easily enough, and converted to the desired output format.

Ngôn ngữ chính
Ruby
Star
1.6k
Fork
239
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SlatherOrg/slather

Tất cả issue của SlatherOrg/slather

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.