-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.contest.json
47 lines (45 loc) · 972 Bytes
/
.contest.json
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
{
"$schema": "https://raw.githubusercontent.com/contest-framework/server/refs/heads/main/documentation/schema.json",
"actions": [
{
"type": "test-all",
"run": "make test"
},
{
"type": "test-file",
"files": "**/*.rs",
"vars": [
{
"name": "file_without_ext",
"source": "file",
"filter": "\\b(\\w+)\\.rs$"
}
],
"run": "cargo test {{ file_without_ext }}"
},
{
"type": "test-file-line",
"files": "**/*.rs",
"vars": [
{
"name": "test_name",
"source": "currentOrAboveLineContent",
"filter": "\\bfn (\\w+)\\("
}
],
"run": "cargo test {{ test_name }}"
}
],
"options": {
"beforeRun": {
"clearScreen": true,
"newlines": 0
},
"afterRun": {
"newlines": 1,
"indicatorLines": 2,
"indicatorBackground": true,
"printResult": false
}
}
}