Skip to content

Commit 12f8afa

Browse files
committed
Leave a trace of BATS in the docs, changelog type removed
Note in cats.adoc and the packaging README that the BATS suites were replaced and removed, and keep the "no new .bats files" rule in AGENTS.md for agents trained on the old layout.
1 parent 633c6b2 commit 12f8afa

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ While README.md and CONTRIBUTING.md are mainly written for humans, this file is
3838

3939
When adding a test to a suite that already exists, match the design choices of the file you are editing.
4040

41+
- Shell tests for `bin/solr`/`bin\solr.cmd` are CATS suites (`SolrCatsTestCase`); BATS was removed, don't add `.bats` files.
42+
4143
## Documentation
4244

4345
- For major or breaking changes, add a prominent note in reference guide major-changes-in-solr-X.adoc

‎changelog/unreleased/SOLR-18645-remove-bats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
title: >
44
The BATS suites in `solr/packaging/test` are removed, along with the `integrationTestsPicocli` and
55
`downloadBats` Gradle tasks. CATS covers the same ground; `integrationTests` now runs `catsTests`.
6-
type: other
6+
type: removed
77
authors:
88
- name: Jan Høydahl
99
url: https://home.apache.org/phonebook.html?uid=janhoy

‎dev-docs/cats.adoc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
CATS (Cross-platform Automated Testing System) is how Solr tests `bin/solr` and `bin\solr.cmd`. A test is a Java class that runs real `solr` commands against an unpacked distribution, through `bash` on Unix and `cmd.exe` on Windows. The same test covers both platforms, so script, quoting and packaging bugs show up on the OS where they actually happen.
66

7+
CATS replaced the BATS suites that used to live in `solr/packaging/test/` (SOLR-18642); they were removed in SOLR-18645.
8+
79
* Suites: `solr/packaging/src/test/org/apache/solr/shell/`
810
* Base class: `SolrCatsTestCase` (in `solr/test-framework`, package `org.apache.solr.shell`)
911
* Harness internals: package `org.apache.solr.cats`, same module

‎solr/packaging/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ CATS suites in `src/test/org/apache/solr/shell/`. They are not in `check`: they
4242

4343
CI runs CATS on pull requests touching `solr/bin`, this module or the CLI (`.github/workflows/cats-test.yml`).
4444

45+
Until SOLR-18645 this module also held the BATS suites in `test/*.bats`; they were ported to CATS and removed.
46+
4547
## See also
4648

4749
- [`dev-docs/writing-tests.adoc`](../../dev-docs/writing-tests.adoc) — which kind of test to write, how to run each, what to read when one fails.

0 commit comments

Comments
 (0)