Commit 9512a4b8 authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

13: before class quiz

parent 523dd14d
# CI configuration for individual tasks and quizzes
before-11:
stage: tests
image: registry.gitlab.com/mffd3s/nswi177/student:latest
script:
- ./bin/run_tests.sh quizzes/11
before-12:
stage: tests
image: registry.gitlab.com/mffd3s/nswi177/student:latest
script:
- ./bin/run_tests.sh quizzes/12
tasks-10:
before-13:
stage: tests
image: registry.gitlab.com/mffd3s/nswi177/student:latest
script:
- ./bin/run_tests.sh tasks/10
- ./bin/run_tests.sh quizzes/13
tasks-11:
stage: tests
......
#!/usr/bin/env bats
#> quiz: 13/before
load "../../nswi177"
@test "13/before.md - Submitted" {
fail_if_missing
}
@test "13/before.md - A1 answered" {
skip_if_missing
assert_quiz_answered "A1"
}
@test "13/before.md - A1 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A1"
assert_quiz_text "A1" "3"
}
@test "13/before.md - A2 answered" {
skip_if_missing
assert_quiz_answered "A2"
}
@test "13/before.md - A2 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A2"
assert_quiz_single "A2" "5"
}
@test "13/before.md - A3 answered" {
skip_if_missing
assert_quiz_answered "A3"
}
@test "13/before.md - A3 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A3"
assert_quiz_text "A3" "1"
}
@test "13/before.md - A4 answered" {
skip_if_missing
assert_quiz_answered "A4"
}
@test "13/before.md - A4 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A4"
assert_quiz_single "A4" "5"
}
......@@ -10,3 +10,4 @@
2022-04-12 2022-04-24 10/*.bats
2022-04-20 2022-04-30 11/*.bats
2022-04-27 2022-05-07 12/*.bats
2022-05-03 2022-05-14 13/*.bats
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment