DUB-TEST(1) | The D Language Foundation | DUB-TEST(1) |
NAME
dub-test - Executes the tests of the selected package
SYNOPSIS
dub test [<package>[@<version-spec>]] OPTIONS... [-- <application arguments...>]
DESCRIPTION
Builds the package and executes all contained unit tests.
If no explicit configuration is given, an existing "unittest" configuration will be preferred for testing. If none exists, the first library type configuration will be used, and if that doesn't exist either, the first executable configuration is chosen.
When a custom main file (--main-file) is specified, only library configurations can be used. Otherwise, depending on the type of the selected configuration, either an existing main file will be used (and needs to be properly adjusted to just run the unit tests for 'version(unittest)'), or DUB will generate one for library type configurations.
Finally, if the package contains a dependency to the "tested" package, the automatically generated main file will use it to run the unit tests.
OPTIONS
--temp-build
--main-file=VALUE
--combined
--parallel
-f, --force
--coverage
--coverage-ctfe
-b, --build=VALUE
debug, plain, release, release-debug, release-nobounds, unittest, profile, profile-gc, docs, ddox, cov, cov-ctfe, unittest-cov, unittest-cov-ctfe, syntax and custom types
-c, --config=VALUE
--override-config=VALUE
--compiler=VALUE
dmd, gdc, ldc, gdmd, ldmd
-a, --arch=VALUE
-d, --debug=VALUE
--d-version=VALUE
--nodeps
--build-mode=VALUE
separate (default), allAtOnce, singleFile
--single
--force-remove
--filter-versions
COMMON OPTIONS
See dub(1)
EXIT STATUS
- 0
- DUB succeeded
- 1
- usage errors, unknown command line flags
- 2
- package not found, package failed to load, miscellaneous error
FILES
dub.sdl, dub.json
AUTHOR
Copyright (c) 1999-2024 by The D Language Foundation
ONLINE DOCUMENTATION
SEE ALSO
dub(1), dub-build(1), dub-dustmite(1), dub-lint(1), dub-run(1)
2024-07-07 | The D Language Foundation |