-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchallenge.yaml
More file actions
70 lines (60 loc) · 1.9 KB
/
challenge.yaml
File metadata and controls
70 lines (60 loc) · 1.9 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
version: 1.0
#
# Test cases for this problem. Describe how many points each test gets
#
# For code review problems, add these per test case:
# newFileName: hello.txt
# newFileCommentLine: 1
testcases:
- id: TEST_1
description: Add two integers
maxPoints: 10
- id: TEST_2
description: Bad arguments - Too few
maxPoints: 10
- id: TEST_3
description: Bad arguments - Too many
maxPoints: 80
#
# The statement that the user reads
#
statement: |
Hello, this is the problem statement!
Here is a git repository with the starter code:
```
{repoUrl}
```
#
# Some configuration for this problem. Input type can be:
# GitRepo, CodeReview or Url
#
configuration:
- inputType: GitRepo
- ideEnabled: false
- vsliteEnabled: false
- desktopEnabled: false
#
# Validation will run these steps in sequence. Include environment setup,
# installation of dependencies and running tests. If the step you are running
# will produce a test output file, include the `results` property which should
# contain the name of the file.
#
validate:
# Here is a task that compiles the code
- name: "Compiling code"
cmd: echo Compiling code...
# The command to run the verification, this can be running tests
# And it needs to produce a file called with a junit test format
- task: createFile
file: output.xml
contents: |
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites time="15.682687">
<testsuite name="Tests.DevMatchTestCases" time="6.605871">
<testcase name="TEST_1" classname="Tests.simpleSum" time="2.111" />
<testcase name="TEST_2" classname="Tests.simpleSum" time="1.051" />
<testcase name="TEST_3" classname="Tests.simpleSum" time="3.441" />
</testsuite>
</testsuites>
# The location and filename of the results
results: output.xml