test.yaml
1.78 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
#=============================================================================
ref: demo
title: Exame 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)
save_answers: yes
answers_dir: demo/ans
# Show points for each question, scale 0-20 (default: False)
show_points: True
# Show question's hint if available (default: False)
show_hints: 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/questions
# (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:
- instructions
- ref: flags
points: 0.5
- ref: math-expressions
points: 2.0
- ref: solar-system
# points: 1.0 is the default, if omitted
- ref: # choose one of the following list of questions
- our_planet1
- our_planet2
points: 0.75
- basic-colors # same as `ref: basic-colors`
- question-whatever
- markdown_instructions