test.yaml 1.96 KB
#=============================================================================
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-jupyter
      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