summaryrefslogtreecommitdiffstats
path: root/ExampleAssessments
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-02-09 15:43:06 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-02-09 15:43:06 +0000
commit8966f20ccb9897282d2ac7c174b87934fc38fc15 (patch)
tree4934257c0a857c94907a72aae0e0de05867a8fb1 /ExampleAssessments
parentff07842dc629e07f081ae578e50c42e4a54bc810 (diff)
downloadSmarker-8966f20ccb9897282d2ac7c174b87934fc38fc15.tar.gz
Smarker-8966f20ccb9897282d2ac7c174b87934fc38fc15.zip
started working on monitoring execution environments
Diffstat (limited to 'ExampleAssessments')
-rw-r--r--ExampleAssessments/example.yml95
1 files changed, 53 insertions, 42 deletions
diff --git a/ExampleAssessments/example.yml b/ExampleAssessments/example.yml
index be1609f..b6e7b12 100644
--- a/ExampleAssessments/example.yml
+++ b/ExampleAssessments/example.yml
@@ -1,43 +1,54 @@
-name: CMP-5021B-19-20
-files:
- - example.py:
- classes:
- - Application:
- methods:
- - __init__(3)
- - a_method_with_defaults(3)
- - add(3)
- - aMethodThatIsntThere(1)
- functions:
- - hello_world(2)
- - an_undocumented_function(0)
- - aFunctionThatIsntThere(2)
- - greet(2)
- tests:
- - |
- dateOne = example.MyDate(day = 12, month = 8, year = 2001)
- dateTwo = example.MyDate(day = 12, month = 8, year = 2001)
- assert dateOne == dateTwo
- - |
- dateOne = example.MyDate(day = 12, month = 8, year = 2001)
- dateTwo = example.MyDate(day = 5, month = 4, year = 1999)
- assert dateOne == dateTwo
- - aFileThatIsntThere.py:
- functions:
- - hello_world(2)
- - animals.py:
- classes:
- - Dog:
- - Cat:
- - Kitten:
- tests:
- - |
- nibbles = animals.Kitten()
- assert nibbles.speak() == "nyaa~~"
- - |
- milton = animals.Dog()
- assert milton.move() == "*moves*"
-dependencies:
- files:
- - ../wsData.txt
+name: CMP-5021B-19-20
+files:
+ - example.py:
+ classes:
+ - Application:
+ methods:
+ - __init__(3)
+ - a_method_with_defaults(3)
+ - add(3)
+ - aMethodThatIsntThere(1)
+ functions:
+ - hello_world(2)
+ - an_undocumented_function(0)
+ - aFunctionThatIsntThere(2)
+ - greet(2)
+ tests:
+ - |
+ dateOne = example.MyDate(day = 12, month = 8, year = 2001)
+ dateTwo = example.MyDate(day = 12, month = 8, year = 2001)
+ assert dateOne == dateTwo
+ - |
+ dateOne = example.MyDate(day = 12, month = 8, year = 2001)
+ dateTwo = example.MyDate(day = 5, month = 4, year = 1999)
+ assert dateOne == dateTwo
+ run:
+ - python example.py 1:
+ regexes:
+ - hello world\!
+ - aFileThatIsntThere.py:
+ functions:
+ - hello_world(2)
+ - animals.py:
+ classes:
+ - Dog:
+ - Cat:
+ - Kitten:
+ tests:
+ - |
+ nibbles = animals.Kitten()
+ assert nibbles.speak() == "nyaa~~"
+ - |
+ milton = animals.Dog()
+ assert milton.move() == "*moves*"
+ run:
+ - python animals.py:
+ monitor: animals.txt
+ regexes:
+ - TURRÓN
+produced_files:
+ - animals.txt
+dependencies:
+ files:
+ - ../wsData.txt
- ../IncludeDirectory \ No newline at end of file