dmd icon indicating copy to clipboard operation
dmd copied to clipboard

Introduce a parameter to -unittest that lets you filter out unittests…

Open maxhaton opened this issue 1 year ago • 5 comments

… from modules that aren't listed explicitly on the command line.

For example -i foo.d should only run unittests from foo but not anything foo imports and thus compiles because of -i

maxhaton avatar Nov 11 '23 04:11 maxhaton

Thanks for your pull request, @maxhaton!

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 run digger -- build "master + dmd#15796"

dlang-bot avatar Nov 11 '23 04:11 dlang-bot

Haven't thought about testing this yet.

UDAs are a sketch I couldn't be bothered to finish implementing.

maxhaton avatar Nov 11 '23 04:11 maxhaton

@atilaneves @adamdruppe @deadalnix quick sketch to prove you can do it. May be intractable for some subtle reason.

maxhaton avatar Nov 11 '23 04:11 maxhaton

Errors in globals.d

Imperatorn avatar Nov 11 '23 09:11 Imperatorn

@maxhaton what's your plan with this PR? Maybe add some tests first?

RazvanN7 avatar Jan 10 '24 10:01 RazvanN7