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

drug via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 30 05:13:03 PDT 2017


30.03.2017 14:47, rjframe пишет:
> 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
>
Broken test could be parsable, but still broken. You need to run it to 
check if it is (not) broken anyway.


More information about the Digitalmars-d mailing list