Commit 9319e81
Add a test suite to group our generated functional tests.
This CL adds a test suite to allow running all variants of a test using the it's base name.
# Background
The macros defined in `test_defs.bzl` generate multiple variants of each test that are built with different javacopts (e.g. Javac vs KSP, Java codegen vs Kotlin codegen, etc.). The name given to the macro (e.g. "BarTest") is currently used as a base name for the actual test targets which have additional suffixes appended to the name (e.g. "BarTest_Javac_JavaCodegen", "BarTest_Ksp_JavaCodegen"). However, one issue with this setup is that it is difficult to run all of the tests associated with "BarTest" since you either need to know all of the variants and run each of then individually, or use `:all` to run all of the targets in the package. This CL adds a test suite using the base name that will run all variants of that test (e.g. `blaze test foo/bar:BarTest`).
RELNOTES=N/A
PiperOrigin-RevId: 8083299221 parent 9053b3b commit 9319e81
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| |||
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | | - | |
| 243 | + | |
243 | 244 | | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
| 250 | + | |
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| |||
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
259 | 268 | | |
260 | 269 | | |
261 | 270 | | |
| |||
0 commit comments