test.yaml
1.96 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
#=============================================================================
ref: demo
title: Teste de Demonstração
# Database with student credentials and grades of all questions and tests done
# The database is an sqlite3 file generate with the script initdb_from_csv.py
database: demo/students.db
# (optional) Generate a file for each test done by a student.
# It includes the questions, answers and grades.
# If undefined, then no tests are saved (useful for debug and training)
# answers_dir: WHERE_TO_SAVE_THE_TESTS
# Show points for each question, scale 0-20 (default: False)
show_points: True
# Show question's hint if available (default: False)
show_hints: True
# In practice mode a test can be repeat any number of times (default: False)
practice: True
# Show lots of information for debugging (default: False)
# debug: True
#-----------------------------------------------------------------------------
# Base path applied to the questions files and all the scripts
# including question generators and correctors.
# Either absolute path or relative to current directory.
questions_dir: demo
# (optional) List of files containing questions in yaml format.
# Selected questions will be obtained from these files.
# If undefined, all files in questions_dir are loaded.
files:
- questions.yaml
# This is the list of questions. If a "ref:" has a list of keys, then
# one question is selected from the list.
# The following example will generate a test with 3 questions.
questions:
# first question
- ref: math-expressions
points: 1
# second question
- ref: solar-system-jupiter
points: 0.5
# third question
- ref:
# choose 1 from the following 2 questions
- question-v1
- question-v2
# points: 1.0 is the default, if omitted
# fourth question
- ref: question-colors
points: 1.5
# questions 5,6,7 using default points (=1.0)
- question-whatever
- one-question
- another-question