Bug 16422 – "dub test" builds the same testing executable every run, should cache it

Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-23T20:25:52Z
Last change time
2020-04-09T10:49:52Z
Assigned to
No Owner
Creator
Andrei Alexandrescu

Comments

Comment #0 by andrei — 2016-08-23T20:25:52Z
Refer to http://forum.dlang.org/post/[email protected]. The generated test code should be cached across runs and only rebuilt if the dependencies change. However, the test should be run every time (because of randomized unittests).
Comment #1 by pro.mathias.lang — 2020-04-09T10:49:52Z
As a heavy user of DUB, I haven't experienced this behavior. Quite the contrary, DUB sometimes does not rebuild when changing compilers, flag, or config. And there are various reports of this on the issue tracker, so closing as WORKSFORME.