Detached unit tests

Quirin Schroll qs.il.paperinik at gmail.com
Thu May 16 17:32:05 UTC 2024


On Tuesday, 30 April 2024 at 17:02:51 UTC, Steven Schveighoffer 
wrote:
> I want to propose that we provide a mechanism to semantically 
> detach unit tests from the scope they are written in. Such 
> unittests would be treated as if they were not in the same 
> scope or module. This includes detached unit tests inside 
> templates. The only stipulation is that the current module is 
> assumed imported.

I suggested something like this before and used the syntax 
`unittest public`.
With a `static unittest`, I’d think it’s meant to be in a 
template, but independent of the template instance.


More information about the dip.ideas mailing list