-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.yml
More file actions
106 lines (100 loc) · 3.88 KB
/
plugin.yml
File metadata and controls
106 lines (100 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Tests
description: Sets up your pipeline to run tests with Buildkite Test Engine
author: https://github.com/buildkite
requirements:
- curl
- jq
configuration:
properties:
# Plugin-specific
oidc-lifetime:
type: integer
description: Lifetime in seconds for the OIDC token. Defaults to 300.
install-client:
type: boolean
description: >-
Enable automatic installation of bktec. Defaults to true. When enabled, bktec is downloaded, added to PATH,
and BUILDKITE_TEST_ENGINE_CLIENT_PATH is set to the binary location (useful for mounting the binary into
a Docker container). Set to false if you prefer to install bktec yourself.
client-version:
type: string
description: >-
Target version of bktec to download (e.g. "2.4.0"). Defaults to the latest release.
client-os:
type: string
description: >-
Target OS for the downloaded bktec binary (e.g. "linux", "darwin"). Defaults to the host OS.
Useful when the host and the Docker container run different operating systems.
client-arch:
type: string
description: >-
Target architecture for the downloaded bktec binary (e.g. "amd64", "arm64"). Defaults to the host architecture.
Useful when the host and the Docker container run different architectures.
# Test Engine
suite-slug:
type: string
description: Slug of the Test Engine suite to report results to. Defaults to the pipeline slug.
upload-results:
type: boolean
description: >-
Upload test results to Test Engine. Default: true. Set to false if you use the test collectors for richer
data collection, or if you want to handle the upload yourself.
# Test runner
test-runner:
type: string
description: Test runner to use (e.g. "rspec", "jest", "pytest", "gotest").
test-cmd:
type: string
description: Command to run the tests.
result-path:
type: string
description: Path to the output file produced by the test runner.
split-by-example:
type: boolean
description: Enable split by example. Not supported by all test runners.
# Test filtering
files:
type: string
description: Path to a file containing a list of test files (one per line) to override default test file discovery.
test-file-pattern:
type: string
description: Glob pattern for discovering test files (e.g. "spec/**/*_spec.rb").
test-file-exclude-pattern:
type: string
description: Glob pattern for excluding test files from discovery.
tag-filters:
type: string
description: Tag filters for selecting tests to run. Currently only supported by Pytest.
location-prefix:
type: string
description: Prefix to prepend to test file paths when requesting a test plan.
# Test runner retry
retry-cmd:
type: string
description: Command to use when retrying failed tests. Defaults to test-cmd.
retry-count:
type: integer
description: Number of times to retry failing tests.
disable-retry-for-muted-test:
type: boolean
description: Disable automatic retry for muted tests.
# Plan (dynamic mode)
max-parallelism:
type: integer
description: Maximum number of parallel nodes for the test plan. Used with bktec plan.
target-time:
type: string
description: Target duration for each node (e.g. "4m30s"). Must be used with max-parallelism.
plan-identifier:
type: string
description: Test plan identifier from bktec plan. Set automatically in dynamic mode; set manually for static mode.
# Misc
fail-on-no-tests:
type: boolean
description: Enable failure when no tests are assigned to this node.
debug-enabled:
type: boolean
description: Enable debug output from bktec.
required:
- test-runner
additionalProperties: false