Detached unit tests
Timon Gehr
timon.gehr at gmx.ch
Wed May 1 12:55:01 UTC 2024
On 4/30/24 19:02, 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.
>
> For a strawman syntax, let's do what everyone does ... overload `static`!
>
> ...
>
> thoughts?
>
> -Steve
Looks useful, as usually you want to test the API. Maybe this should
have been the default behavior for unit tests with `public` visibility.
More information about the dip.ideas
mailing list