Skip to content

Github action for calculating source based coverage using the llvm backend.

License

Notifications You must be signed in to change notification settings

JulianSchmid/actions-rs-llvm-coverage

Repository files navigation

⚠️ ⚠️ This project is not ready to be used ⚠️ ⚠️

actions-rs-llvm-coverage

example workflow name

This GitHub Action runs the cargo test command on a Rust language project and calculates the source based code coverage of the tests.

Example workflow

name: codecoverage

on: [ push, pull_request ]

jobs:
  test_coverage:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - uses: actions-rs/toolchain@v1.0.6
      with:
        toolchain: nightly
        components: llvm-tools-preview
    - uses: actions-rs/cargo@v1
      with:
        command: install
        toolchain: nightly
        args: cargo-binutils
    - name: cargo test coverage (source based)
      uses: JulianSchmid/actions-rs-llvm-coverage@v1

Arguments

Name Required Description Type Default
use-cross Use cross instead of cargo bool false

TODO

  • Codecov integration
    • With merged reports
    • Seperated reports?
  • HTML Report
  • Doctest support
  • Remove cross?

References

About

Github action for calculating source based coverage using the llvm backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published