demo.yaml 2.41 KB
---
# ============================================================================
# Unique identifier of the test.
# Valid names can only include letters, digits, dash and underscore,
# e.g.  asc1-test3
# Database queries can be done in the terminal with
#     sqlite3 students.db "select * from tests where ref='asc1-test3'"
ref: tutorial

# Database file that includes student credentials, tests and questions grades.
# It's a sqlite3 database generated with the command 'initdb'
database: students.db

# Directory where the submitted and corrected test are stored for later review.
answers_dir: ans

# Server used to compile & execute code
jobe_server: 192.168.1.85

# --- optional settings: -----------------------------------------------------

# Title of this test, e.g. course name, year or test number
# (default: '')
title: Teste de demonstração (tutorial)

# Duration in minutes.
# (0 or undefined means infinite time)
duration: 20

# Automatic test submission after the given 'duration' timeout
# (default: false)
autosubmit: true

# Show points for each question (min and max).
# (default: true)
show_points: true

# scale final grade to an interval, e.g. [0, 20], keeping the relative weight
# of the points declared in the questions below.
# (default: no scaling, just use question points)
scale: [0, 5]


# ----------------------------------------------------------------------------
# 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: .

# (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/questions-tutorial.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:
  - ref: tut-test
  - tut-questions

  - tut-radio
  - tut-checkbox
  - tut-text
  - tut-text-regex
  - tut-numeric-interval
  - ref: tut-textarea
    points: 2.0

  - tut-information
  - tut-success
  - tut-warning
  - [tut-alert1, tut-alert2]
  - tut-generator
  - tut-yamllint
  - tut-code


# test:
#   - ref1
#   - block: a
#   - block: [b, c]
#   - ref2

# blocks:
#   a:
#     - ref1
#     - ref2
#     - ref3
#   b:
#     - rr4
#     - rr5
#     - rr6