test.yaml 1.9 KB
#=============================================================================
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: ~/Work/Projects/perguntations/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

# In practice mode a test can be repeat any number of times (default: False)
# practice: False

# 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