Bug 7213 – @disable should be useable to deactivate unittests

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2012-01-03T14:40:48Z
Last change time
2024-12-13T17:57:34Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18395 →

Comments

Comment #0 by code — 2012-01-03T14:40:48Z
unittest @disable { } @disable unittest { }
Comment #1 by andrej.mitrovich — 2012-01-03T14:53:21Z
That's what version(none) is for.
Comment #2 by monarchdodra — 2013-08-30T00:20:56Z
(In reply to comment #1) > That's what version(none) is for. I read the title, and I was going to say the same thing. Can we close this as wontfix?
Comment #3 by yebblies — 2013-08-30T01:09:42Z
This has some advantages over version(none): - the unittest is still compiled, just not executed - a test runner could print a message for the disabled unittest
Comment #4 by andrej.mitrovich — 2013-08-30T06:36:32Z
(In reply to comment #3) > This has some advantages over version(none): > > - the unittest is still compiled, just not executed > - a test runner could print a message for the disabled unittest Good points. Also, since it's semantically analyzed it will catch compile-time errors.
Comment #5 by robert.schadek — 2024-12-13T17:57:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18395 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB