Skip to content

Commit

Permalink
README.md: syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
bbigras authored and palfrey committed Nov 26, 2019
1 parent ad2ac48 commit 358efc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`serial_test` allows for the creation of serialised Rust tests using the `serial` attribute
e.g.
````
```rust
#[test]
#[serial]
fn test_serial_one() {
Expand All @@ -19,20 +19,20 @@ fn test_serial_one() {
fn test_serial_another() {
// Do things
}
````
```
Multiple tests with the `serial` attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however.

## Usage
We require at least Rust 1.32 for [attribute-like procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros) support and [proc-macro2](https://github.com/alexcrichton/proc-macro2) being willing to build!

Add to your Cargo.toml
```
```toml
[dev-dependencies]
serial_test = "*"
```

plus `use serial_test::serial;` (for Rust 2018) or
```
```rust
#[macro_use]
extern crate serial_test;
```
Expand Down

0 comments on commit 358efc9

Please sign in to comment.