Skip to content

Commit

Permalink
update test discovery docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gedaiu committed Jun 17, 2017
1 parent ed0ca79 commit e8682ca
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion doc/test-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,26 @@ which will use the `UnitTestDiscovery` class from the `trial.discovery.unit` mod

## Unit Test Discovery

This is the default test discovery. It will search inside your modules for `unittest` blocks. If you annotate
This is the default test discovery. It will search inside your modules for `unittest` blocks. You can add custom names
to your tests by adding a comment before the `unittest` keyword or you annotate
the test with a string [UDA](http://dlang.org/spec/attribute.html#uda) that string will be used as the test name.

```
/// This is my awesome test
unittest {
}
```

or

```
@("This is my awesome test")
unittest {
}
```

## Extending

If you want to write your custom TestDiscovery, your class must implement
Expand Down

0 comments on commit e8682ca

Please sign in to comment.