Skip to content

Commit b6db9b0

Browse files
authored
Merge pull request #138 from layer5io/fix-and-enhance-test-states
Fix and enhance tests
2 parents e9d1dc0 + 6fbde13 commit b6db9b0

File tree

3 files changed

+78
-494
lines changed

3 files changed

+78
-494
lines changed

archetypes/test.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,64 @@
22
title: 'test'
33
pass_percentage: 70 # Minimum percentage required to pass the test
44
time_limit: 15 # Duration of the test in minutes
5+
max_attempts: 3 # Maximum number of attempts allowed for the test
56
difficulty: "beginner" # Difficulty level of the test
67
category: "Programming Languages" # Category of the test
78
tags: ["golang", "basics", "syntax", "fundamentals"] # Tags for the test, useful for search and categorization
89
type: "test" # Type of the content, in this case, a test ( required for the test to be recognized by the system )
910

11+
12+
# Table of content covered in the test
13+
# Each domain can have a weightage (percentage) and subdomains (items)
14+
# Weightage should sum up to 100 across all domains ( not strictly enforced, but recommended )
15+
competencies:
16+
- title: "Domain 1"
17+
percentage: 10 # Weightage of this domain in the test
18+
items:
19+
- "Subdomain 1"
20+
- "Subdomain 2"
21+
22+
- title: "Domain 2"
23+
percentage: 30
24+
items:
25+
- "Subdomain 1"
26+
- "Subdomain 2"
27+
28+
- title: "Domain 3"
29+
percentage: 60
30+
items:
31+
- "Subdomain 1"
32+
- "Subdomain 2"
33+
34+
35+
36+
# List of resource that are recommended to complete before taking the test
37+
# Not strictly enforced, but recommended
38+
prerequisite_knowledge:
39+
- title: "Learning Path: Cloud Computing Basics"
40+
link: "https://academy-domain.com/learning-paths/cloud-computing-basics"
41+
- title: "Basic Certification: Networking Basics"
42+
link: "https://academy-domain.com/certifications/networking-basics"
43+
- title: "Basic knowledge of Linux command line"
44+
link: "https://linuxcommand.org/"
45+
46+
# List of additional resources for further reading
47+
related_resources:
48+
- title: "Documentation"
49+
link: "https://docs.example.com/"
50+
- title: "Instructions"
51+
link: "https://instructions.example.com/"
52+
- title: "YouTube Channel"
53+
link: "https://www.youtube.com/c/example"
54+
55+
# Additional attributes about the test will be displayed in the test details page
56+
additional_attributes:
57+
- title: "Retake Policy"
58+
description: "One Retake allowed after 30 days"
59+
- title: "Labs"
60+
description: "Hands-on labs included"
61+
62+
1063
questions:
1164
# Multiple Choice Question (Single Answer)
1265
- id: "q1"

layouts/partials/test/single.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
"lastmod" (.Lastmod | time.Format "2006-01-02")
3232
"draft" .Draft
3333
"file_path" .File.Path
34+
"max_attempts" (or $p.max_attempts 0)
3435
"pass_percentage" (or $p.pass_percentage 70)
35-
"time_limit" (or $p.time_limit "infinite")
36+
"time_limit" (or $p.time_limit 0 | string)
3637
"questions" $p.questions
3738
"total_questions" (len $p.questions)
3839
"prerequisites" $prerequisites

0 commit comments

Comments
 (0)