-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontest.json
More file actions
71 lines (66 loc) · 1.57 KB
/
contest.json
File metadata and controls
71 lines (66 loc) · 1.57 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
{
"$schema": "https://raw.githubusercontent.com/contest-framework/server/refs/heads/main/documentation/schema.json",
"actions": [
{
"comment": "entire test suite",
"type": "test-all",
"run": "make test"
},
{
"comment": "all tests in a Cucumber file",
"type": "test-file",
"files": "*.feature",
"run": "cargo test --quiet --locked --test cuke -- --input {{file}}"
},
{
"comment": "all unit tests in Rust file",
"type": "test-file",
"files": "*.rs",
"run": "cargo test --quiet --locked {{modulename}}",
"vars": [
{
"name": "modulename",
"source": "file",
"filter": "([^/]+).rs"
}
]
},
{
"comment": "single test in Rust file",
"type": "test-file-line",
"files": "*.rs",
"run": "cargo test -- {{fn_name}} --show-output ",
"vars": [
{
"name": "fn_name",
"source": "currentOrAboveLineContent",
"filter": "fn (.*)\\(\\)"
}
]
},
{
"comment": "verify a Markdown file",
"type": "test-file",
"files": "*.md",
"run": "text-runner {{file}}"
},
{
"comment": "only the end-to-end tests with the @this tag",
"type": "test-file-line",
"files": "*.feature",
"run": "make cukethis"
}
],
"options": {
"beforeRun": {
"clearScreen": true,
"newlines": 0
},
"afterRun": {
"newlines": 1,
"indicatorLines": 3,
"indicatorBackground": true,
"printResult": false
}
}
}