-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontest.json
More file actions
59 lines (55 loc) · 1.14 KB
/
contest.json
File metadata and controls
59 lines (55 loc) · 1.14 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
{
"$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 }}"
},
{
"type": "test-file",
"files": "text-runner/apps.ts",
"run": "make doc"
},
{
"type": "test-file",
"files": "README.md",
"run": "make doc"
}
],
"options": {
"beforeRun": {
"clearScreen": true,
"newlines": 0
},
"afterRun": {
"newlines": 1,
"indicatorLines": 2,
"indicatorBackground": true,
"printResult": false
}
}
}