Detached unit tests

NotYouAgain NotYouAgain at gmail.com
Wed May 1 12:04:12 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. ....
> -Steve

If you only want a unittest to only be able to test the public 
api, and presumably want compiler guarantees along with that, 
then just put the unittest in its own module ;-)

Where's the problem in just creating yet another module? I don't 
get it ;-)


More information about the dip.ideas mailing list