Skip to content

Commit 539a2b6

Browse files
committed
update docs
1 parent 9ab902f commit 539a2b6

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Buildkite Test Engine Client (bktec) is an open source tool to orchestrate your
44

55
bktec supports multiple test runners and offers various features to enhance your testing workflow. Below is a comparison of the features supported by each test runner:
66

7-
| Feature | RSpec | Jest | Playwright | Cypress | pytest | Go test |
8-
| -------------------------------------------------- | :---: | :--: | :--------: | :-----: | :----: | :--: |
9-
| Filter test files |||||||
10-
| Automatically retry failed test |||||||
11-
| Split slow files by individual test example |||||||
12-
| Mute tests (ignore test failures) |||||||
13-
| Skip tests |||||||
7+
| Feature | RSpec | Jest | Playwright | Cypress | pytest | pants (pytest) | Go test |
8+
| -------------------------------------------------- | :---: | :--: | :--------: | :-----: | :----: | :----------: | :--: |
9+
| Filter test files |||||| | |
10+
| Automatically retry failed test |||||| | |
11+
| Split slow files by individual test example |||||| | |
12+
| Mute tests (ignore test failures) |||||| | |
13+
| Skip tests |||||| | |
1414

1515
## Installation
1616
The latest version of bktec can be downloaded from https://github.com/buildkite/test-engine-client/releases
@@ -60,6 +60,7 @@ To configure the test runner for bktec, please refer to the detailed guides prov
6060
- [Playwright](./docs/playwright.md)
6161
- [Cypress](./docs/cypress.md)
6262
- [pytest](./docs/pytest.md)
63+
- [pytest pants](./docs/pytestpants.md)
6364
- [go test](./docs/gotest.md)
6465
- [RSpec](./docs/rspec.md)
6566

docs/pytestpants.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
# Using bktec with pants
1+
# Using bktec with pants (Experimental)
2+
3+
> [!WARNING]
4+
> Pants support is currently experimental and has limited feature support. Only the following features are supported:
5+
> - Automatically retry failed tests
6+
> - Mute tests (ignore test failures)
7+
>
8+
> The following features are not supported:
9+
> - Filter test files
10+
> - Split slow files by individual test example
11+
> - Skip tests
12+
213
To integrate bktec with pants, you need to [install and configure Buildkite Test Collector for pytest](https://buildkite.com/docs/test-engine/python-collectors#pytest-collector) first. Then set the `BUILDKITE_TEST_ENGINE_TEST_RUNNER` environment variable to `pytestpants`.
314

4-
Look at the example configuration files in the [pytest_pants testdata directory](https://github.com/buildkite/test-engine-client/tree/main/internal/runner/testdata/pytest_pants) for an example of how to add buildkite-test-collector to the pants resolve used by pytest. Specifically:
15+
Look at the example configuration files in the [pytest_pants testdata directory](../internal/runner/testdata/pytest_pants) for an example of how to add buildkite-test-collector to the pants resolve used by pytest. Specifically:
516

6-
- [pants.toml](https://github.com/buildkite/test-engine-client/blob/main/internal/runner/testdata/pytest_pants/pants.toml) - pants configuration
7-
- [3rdparty/python/BUILD](https://github.com/buildkite/test-engine-client/blob/main/internal/runner/testdata/pytest_pants/3rdparty/python/BUILD) - python_requirement targets
8-
- [3rdparty/python/pytest-requirements.txt](https://github.com/buildkite/test-engine-client/blob/main/internal/runner/testdata/pytest_pants/3rdparty/python/pytest-requirements.txt) - Python requirements.txt
17+
- [pants.toml](../internal/runner/testdata/pytest_pants/pants.toml) - pants configuration
18+
- [3rdparty/python/BUILD](../internal/runner/testdata/pytest_pants/3rdparty/python/BUILD) - python_requirement targets
19+
- [3rdparty/python/pytest-requirements.txt](../internal/runner/testdata/pytest_pants/3rdparty/python/pytest-requirements.txt) - Python requirements.txt
920

1021
In the example in the repository, you would need to generate a lockfile next, i.e.
1122

0 commit comments

Comments
 (0)