Detached unit tests
    Steven Schveighoffer 
    schveiguy at gmail.com
       
    Wed May  1 14:26:21 UTC 2024
    
    
  
On Wednesday, 1 May 2024 at 12:55:01 UTC, Timon Gehr wrote:
> Looks useful, as usually you want to test the API. Maybe this 
> should have been the default behavior for unit tests with 
> `public` visibility.
Hm... `public unittest` syntax?
The problem I see with that syntax is that `public:` is way way 
more likely than `static:`.
Perhaps you mean ddoc'd unittests? Maybe...
I dislike comments affecting code generation (one of the reasons 
I think we should never have `__traits(getDocumentation, 
symbol)`), and also you may want to ddoc private functions for 
internal docs.
I'm not attached to the `static unittest` syntax, it's just 
what's handy. A `core.attribute` UDA would work fine for me.
-Steve
    
    
More information about the dip.ideas
mailing list