• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

assert-rs / libtest2
32%

Build:
DEFAULT BRANCH: main
Repo Added 10 Jul 2025 08:18PM UTC
Token JTOfZLUA317jiFni5LulQRzjy0kvrc0cw regen
Build 187 Last
Files 39
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • allow-attrs
  • argfile
  • builder
  • context
  • decl
  • deps
  • discover
  • doc
  • docs/hide-private-macros
  • empty-parameter-list
  • env
  • error
  • fail-fast
  • fix
  • fix-should_panic
  • fix/type-in-function-name
  • fixes
  • full-path-names
  • h
  • harness
  • help
  • hidden-magic
  • ignore
  • ignore-macro-3
  • imic
  • json
  • json-write
  • macro
  • macro-tests
  • meta
  • msrv
  • notify
  • order
  • prep
  • refactor
  • renovate/actions-checkout-5.x
  • renovate/actions-checkout-6.x
  • renovate/actions-setup-python-6.x
  • renovate/compatible-(dev)
  • renovate/github-codeql-action-4.x
  • renovate/schemars-1.x-lockfile
  • renovate/stable-1.x
  • result
  • schema
  • schema2
  • should_panic
  • state
  • template
  • tests
  • unique
  • update

17 Dec 2025 03:10PM UTC coverage: 32.092%. Remained the same
20307517636

push

github

web-flow
feat(test2): Support empty parameter list in `#[test]` (#164)

This adds support for using the `#[test]` attribute on functions with no
parameters (previously these tests had to take the `TestContext`
parameter as the only argument). So code like this should now work as
expected:

```
#[libtest2::test]
fn simple_test() {
    assert_eq!(2 + 2, 4);
}
```

Other parameter combinations are not supported.

Part of https://github.com/assert-rs/libtest2/issues/13.

543 of 1692 relevant lines covered (32.09%)

0.73 hits per line

Relevant lines Covered
Build:
Build:
1692 RELEVANT LINES 543 COVERED LINES
0.73 HITS PER LINE
Source Files on main
  • Tree
  • List 39
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20307517636 main feat(test2): Support empty parameter list in `#[test]` (#164) This adds support for using the `#[test]` attribute on functions with no parameters (previously these tests had to take the `TestContext` parameter as the only argument). So code like ... push 17 Dec 2025 03:11PM UTC web-flow github
32.09
20304930312 main docs: Clarify that names must be unique (#167) See #166 push 17 Dec 2025 01:46PM UTC web-flow github
32.09
20304636955 main Capture names as full paths (#165) The tests emitted by rustc use the full path, not including the crate name, as the name for the test ([impl](https://github.com/rust-lang/rust/blob/ec6f62244/compiler/rustc_builtin... push 17 Dec 2025 01:35PM UTC web-flow github
32.09
20147153084 main chore(deps): Update Rust Stable to v1.92 (#163) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [STABLE](https://redirect.github.com/rust-lang/rust) | minor | `1.91` -> `1.92` | --- ### Release Notes <det... push 11 Dec 2025 08:59PM UTC web-flow github
31.85
19824271307 main chore(deps): Update Rust crate schemars to v1.1.0 (#161) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [schemars](https://graham.cool/schemars/) ([source](https://redirect.github.com/GREsau/sche... push 01 Dec 2025 01:31PM UTC web-flow github
31.89
19370816143 main test(test2): Add UI tests for macro error output (#160) The tests use the `trybuild` crate to check that compilation fails for the incorrect macro use. The test will also fail if the error output changes. These were added directly to the `tests`... push 14 Nov 2025 04:28PM UTC web-flow github
31.89
19172364394 main fix: `#[should_panic]` breaks multiple `#[ignore]` (#158) An edge case I came across. Sidenote: Should probably move to a more robust system that avoids these edge cases, particularly as the number of macros increases. push 07 Nov 2025 03:07PM UTC web-flow github
31.89
19172252080 main docs: Hide private macros (#156) The macros were previously shown in the docs, as they are exported. We still need them to be exported, but they shouldn't be shown. push 07 Nov 2025 03:03PM UTC web-flow github
31.93
19139459401 main Add support for `#[should_panic]` macro (#151) This is done by recursively parsing attributes following the `#[libtest2::test]` macro, and then parsing the first `#[should_panic]` macro encountered. If a macro is encountered then the test will be... push 06 Nov 2025 02:45PM UTC web-flow github
31.93
18990226994 main chore(deps): Update github/codeql-action action to v4 (#150) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github/codeql-action](https://redirect.github.com/github/codeql-action) | action | maj... push 01 Nov 2025 02:52AM UTC web-flow github
30.59
See All Builds (187)

Badge your Repo: libtest2

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc