test.yaml 2.29 KB
#=============================================================================
# The test reference should be a unique identifier. It is saved in the database
# so that queries for the results can be done in the terminal with
#   $ sqlite3 students.db "select * from tests where ref='demo'"
ref: demo

# (optional, default: '') You may wish to refer the course, year or kind of test
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.py
database: demo/students.db

# Generate a file for each test done by a student.
# It includes the questions, answers and grades.
answers_dir: demo/ans

# (optional, default: False) Show points for each question, scale 0-20.
show_points: True

# (optional, default: False) Show hints if available
show_hints: True

# (optional, default: False) Show lots of information for debugging
# 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 can be used.
questions_dir: demo/questions

# (optional) List of files containing questions in yaml format.
# Selected questions will be obtained from these files.
# If undefined, all yaml files in questions_dir are loaded (not recommended).
files:
    - questions.yaml

# This is the list of questions that will make up the test.
# The order is preserved.
# There are several ways to define each question (explained below).
questions:
    # show question where ref=instructions
    - ref: instructions

    # show question where ref=flags and assigns 0.5 points (unnormalized)
    - ref: flags
      points: 0.5

    # idem
    - ref: math-expressions
      points: 2.0

    # show question where ref=solar-system and assign the default of 1.0 point (unnormalized)
    - ref: solar-system

    # select one questions from the list [our_planet1, our_planet2]
    # and assign 0.75 points (unnormalized)
    - ref:
        - our_planet1
        - our_planet2
      points: 0.75

    # the key 'ref:' can be  omitted, a default of 1.0 points is assigned
    - basic-colors

    - fractions

    - question-whatever

    - markdown_instructions