Currently unittest attributes are ignored by ddoc. Ddoc should provide a way of exposing these, so they can be rendered. Output e.g.
Example: @safe @nogc
------------------------------------
// safe nogc unittest code
------------------------------------
Example: @system
------------------------------------
// system unittest code
------------------------------------
Perhaps introduce a macro DDOC_UNITTEST where the first argument is the attributes written in the source code before the unittest keyword, and the second argument is the unittest code.
Comment #1 by robert.schadek — 2024-12-13T19:33:59Z