This is liable to change in the future.A
d_test()rule is used to define a set of D source files that contain tests to run via D's unittest support. The source code of the test must provide a main() function.
The name of the rule.
The set of D source files to be compiled by this rule. Each element should be a string specifying a source file (e.g.
A list of labels to be applied to these tests. These labels are arbitrary text strings and have no meaning within buck itself. They can, however, have meaning for you as a test author (e.g.,
fast). A label can be used to filter or include a specific
d_test()rule when executing
If set specifies the maximum amount of time (in milliseconds) in which all of the tests in this rule should complete. This overrides the default
rule_timeoutif any has been specified in test.rule_timeout.
The set of dependencies of this rule. Each element should be a string specifying a d_library rule defined elsewhere (e.g.
List of build target patterns that identify the build rules that can include this rule in its
# A rule that builds and runs D test with a single source file. d_test( name = 'test', srcs = [ 'test.d', ], )