unittest "name" {}
max haughton
maxhaton at gmail.com
Sat Feb 11 20:05:38 UTC 2023
On Friday, 10 February 2023 at 21:08:38 UTC, Dennis wrote:
> Names on unittests can be useful for documentation, a better
> message on failure, or to selectively run a specific test. D
> has no built-in way to name unittests, but the most popular
> library test runner
> ([silly](https://code.dlang.org/packages/silly)) uses the first
> string UDA as a name:
>
> [...]
I don't think it's worth breaking tooling / grammars over.
That being said I am in favour of the language dictating that a
string in a UDA on a unittest has special meaning (i.e. is a name
or description)
More information about the Digitalmars-d
mailing list