test.yaml 1.75 KB
#=============================================================================
ref: demo
title: Teste de Demonstração

# database contains students+passwords, final results of the tests, and questions done
# database: path/to/students.db
database: inscritos.db

# this will generate a file for each test done. The file is like a replacement
# for a test done in paper.
save_answers: False
answers_dir: ans/demo

show_points: True
show_hints: True
practice: True
# debug: False

#-----------------------------------------------------------------------------
# This is the base path applied to the questions files and all the scripts
# including generators and correctors.
# Either absolute path or relative to current directory.
path: demo
# (Note: answers are saved in a different path defined in answers_dir)

#-----------------------------------------------------------------------------
# List of files containing questions in yaml format.
# Selected questions will be obtained from these files.
# (search in absolute path or current working directory)
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
    - ref:
        # choose 1 from the following 3 questions
        - solar-system-mars
        - solar-system-jupiter
      points: 0.5

    # second
    - ref:
        - question-v1
        - question-v2
        # points: 1.0 is the default, if not defined here.

    # 3.
    - ref:
        - question-colors

    # 4.
    - ref:
        - question-whatever

    # 5.
    - ref: one-question

    # 6.
    - another-question