Add unittest framework and some dependency tests
Dub has always been notoriously hard to test due to the amount of IO it does.
Over the past few years, I have progressively refactored it to allow
dependency injection to take place, which this finally put into action.
By overriding the `PackageManager`, `PackageSupplier`, and a few strategic
functions, we can start to unittest Dub's behavior solely in unittests.
This should hopefully tremendously helps with adding regression tests
for the package manager side of Dub (the build side still need work
to have similar capabilities).
1 parent 94cb94c commit b044accb13697ba6737716c758c283b62f51a83b
@Mathias Lang Mathias Lang authored on 19 Dec 2023
Nicholas Wilson committed on 27 Dec 2023
Showing 4 changed files
View
source/dub/packagemanager.d
View
source/dub/project.d
View
source/dub/test/base.d
View
source/dub/test/dependencies.d 0 → 100644