Skip to content

Commit

Permalink
nit: doc gazelle_generation_test use of arguments.txt (bazel-cont…
Browse files Browse the repository at this point in the history
…rib#1660)

* nit: doc `gazelle_generation_test` use of `arguments.txt`

Add top-level documentation of `arguments.txt`. This was in the code comments but not documented in `extend.md`.

* fix via skylark docs
  • Loading branch information
vpanta authored and jeromep-stripe committed Mar 22, 2024
1 parent 624be58 commit 223c9d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions extend.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ The generation test expects a file structure like the following:
|-- some_test
|-- WORKSPACE
|-- README.md --> README describing what the test does.
|-- arguments.txt --> newline delimited list of arguments to pass in (ignored if empty).
|-- expectedStdout.txt --> Expected stdout for this test.
|-- expectedStderr.txt --> Expected stderr for this test.
|-- expectedExitCode.txt --> Expected exit code for this test.
Expand Down
1 change: 1 addition & 0 deletions internal/generationtest/generationtest.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def gazelle_generation_test(name, gazelle_binary, test_data, build_in_suffix = "
|-- some_test
|-- WORKSPACE
|-- README.md --> README describing what the test does.
|-- arguments.txt --> newline delimited list of arguments to pass in (ignored if empty).
|-- expectedStdout.txt --> Expected stdout for this test.
|-- expectedStderr.txt --> Expected stderr for this test.
|-- expectedExitCode.txt --> Expected exit code for this test.
Expand Down

0 comments on commit 223c9d3

Please sign in to comment.