https://github.com/badboy/testh
https://github.com/badboy/testh
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/badboy/testh
- Owner: badboy
- Created: 2016-04-12T09:30:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-18T12:54:39.000Z (over 8 years ago)
- Last Synced: 2025-07-24T22:08:23.576Z (11 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# #[tesŧ] - A beŧŧer ŧesŧ annoŧaŧion
[](https://travis-ci.org/badboy/testh)
Ever hit the following error?
> src/lib.rs:3:5: 3:12 error: The attribute `tesŧ` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
You don't have to! Just use `tesŧ` … I mean `testh`.
*Because compiler plugins are unstable, you need to use Rust Nightly.*
## Use it
Add it as a dependency to your `Cargo.toml`:
```toml
[dependencies]
testh = { git = "https://github.com/badboy/testh" }
```
Then enable the plugin and tesŧ away!
```rust
#![feature(plugin, custom_attribute)]
#![plugin(testh)]
#[tesŧ]
fn it_really_works() {
assert!(true);
}
```
It even works in tesŧ modules:
```rust
#![feature(non_ascii_idents)]
#[cfg(test)]
mod tesŧ {
#[tesŧ]
fn it_works() {
}
}
```