Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Switch default behavior of tests to only run tests when they are present #2877

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

schveiguy
Copy link
Member

This should have been done a long time ago, but I forgot about it. The note said it would be switched by 2.080, but we are pushing 2.090 next...

The new default behavior makes it so any unittests present will cancel the running of main, even on a successful test run. The old behavior can be had by passing in a DRT switch (see changelog notes).

present. main will only be run if there are no unit tests.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @schveiguy!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + druntime#2877"

@thewilsonator thewilsonator merged commit 0d41806 into dlang:master Dec 18, 2019
@schveiguy schveiguy deleted the switchunittestdefault branch December 18, 2019 18:20
@Geod24
Copy link
Member

Geod24 commented Jan 18, 2020

This caused a regression on dlang-tour: https://issues.dlang.org/show_bug.cgi?id=20500

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants