Is it acceptable to not parse unittest blocks when unittests are disabled ?

rjframe via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 30 04:47:16 PDT 2017


On Thu, 30 Mar 2017 09:04:28 +0000, ixid wrote:

> Why is it harmful (actually asking, not telling you you're wrong)? I
> thought we were going to use a pay for what you use philosophy, if a
> unit test is not run then why is it paid for?

A person that doesn't run `dmd -unittest` (or `dub test`) prior to 
committing code could commit broken tests. In my mind if you write tests 
but don't run them, they're broken anyway.

--Ryan


More information about the Digitalmars-d mailing list