Update unittest_doc.md with analysistest and loadingtest modules (#370)
Co-authored-by: Alexandre Rostovtsev <arostovtsev@google.com>
This commit is contained in:
parent
69b4636956
commit
1bbb388780
|
@ -2,9 +2,18 @@
|
||||||
|
|
||||||
Unit testing support.
|
Unit testing support.
|
||||||
|
|
||||||
Unlike most Skylib files, this exports two modules: `unittest` which contains
|
Unlike most Skylib files, this exports four modules:
|
||||||
functions to declare and define unit tests, and `asserts` which contains the
|
* `unittest` contains functions to declare and define unit tests for ordinary
|
||||||
assertions used to within tests.
|
Starlark functions;
|
||||||
|
* `analysistest` contains functions to declare and define tests for analysis
|
||||||
|
phase behavior of a rule, such as a given target's providers or registered
|
||||||
|
actions;
|
||||||
|
* `loadingtest` contains functions to declare and define tests for loading
|
||||||
|
phase behavior, such as macros and `native.*`;
|
||||||
|
* `asserts` contains the assertions used within tests.
|
||||||
|
|
||||||
|
See https://bazel.build/extending/concepts for background about macros, rules,
|
||||||
|
and the different phases of a build.
|
||||||
|
|
||||||
|
|
||||||
<a id="#unittest_toolchain"></a>
|
<a id="#unittest_toolchain"></a>
|
||||||
|
|
|
@ -14,9 +14,18 @@
|
||||||
|
|
||||||
"""Unit testing support.
|
"""Unit testing support.
|
||||||
|
|
||||||
Unlike most Skylib files, this exports two modules: `unittest` which contains
|
Unlike most Skylib files, this exports four modules:
|
||||||
functions to declare and define unit tests, and `asserts` which contains the
|
* `unittest` contains functions to declare and define unit tests for ordinary
|
||||||
assertions used to within tests.
|
Starlark functions;
|
||||||
|
* `analysistest` contains functions to declare and define tests for analysis
|
||||||
|
phase behavior of a rule, such as a given target's providers or registered
|
||||||
|
actions;
|
||||||
|
* `loadingtest` contains functions to declare and define tests for loading
|
||||||
|
phase behavior, such as macros and `native.*`;
|
||||||
|
* `asserts` contains the assertions used within tests.
|
||||||
|
|
||||||
|
See https://bazel.build/extending/concepts for background about macros, rules,
|
||||||
|
and the different phases of a build.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
load(":new_sets.bzl", new_sets = "sets")
|
load(":new_sets.bzl", new_sets = "sets")
|
||||||
|
|
Loading…
Reference in New Issue