xref: /aosp_15_r20/external/bazelbuild-rules_python/gazelle/python/testdata/README.md (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1*60517a1eSAndroid Build Coastguard Worker# Gazelle Python extension test cases
2*60517a1eSAndroid Build Coastguard Worker
3*60517a1eSAndroid Build Coastguard WorkerEach directory is a test case that contains `BUILD.in` and `BUILD.out` files for
4*60517a1eSAndroid Build Coastguard Workerassertion. `BUILD.in` is used as how the build file looks before running
5*60517a1eSAndroid Build Coastguard WorkerGazelle, and `BUILD.out` how the build file should look like after running
6*60517a1eSAndroid Build Coastguard WorkerGazelle.
7*60517a1eSAndroid Build Coastguard Worker
8*60517a1eSAndroid Build Coastguard WorkerEach test case is a Bazel workspace and Gazelle will run with its working
9*60517a1eSAndroid Build Coastguard Workerdirectory set to the root of this workspace, though, the test runner will find
10*60517a1eSAndroid Build Coastguard Worker`test.yaml` files and use them to determine the directory Gazelle should use for
11*60517a1eSAndroid Build Coastguard Workereach inner Python project. The `test.yaml` file is a manifest for the test -
12*60517a1eSAndroid Build Coastguard Workercheck for the existing ones for examples.
13