diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-01-19 17:05:53 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-01-19 17:05:53 +0000 |
commit | 0404c5d319d0cf85941b20e53a7dab1e9bf71bef (patch) | |
tree | 7ca3384756c34826f41c7624064b952a98023f83 /ExampleAssessments | |
parent | eb5b1d2889aa5e408309f5d89989768ff19bc7f4 (diff) | |
download | Smarker-0404c5d319d0cf85941b20e53a7dab1e9bf71bef.tar.gz Smarker-0404c5d319d0cf85941b20e53a7dab1e9bf71bef.zip |
added testing and generating testing reports
Diffstat (limited to 'ExampleAssessments')
-rw-r--r-- | ExampleAssessments/CMP-4009B.yml | 22 | ||||
-rw-r--r-- | ExampleAssessments/example.yml | 18 |
2 files changed, 27 insertions, 13 deletions
diff --git a/ExampleAssessments/CMP-4009B.yml b/ExampleAssessments/CMP-4009B.yml index 571c97f..fbadc90 100644 --- a/ExampleAssessments/CMP-4009B.yml +++ b/ExampleAssessments/CMP-4009B.yml @@ -1,3 +1,4 @@ +assessment_name: CMP-4009B files: - pjtool.py: classes: @@ -11,18 +12,15 @@ files: - numMonths(2) tests: - | - d1 = Date(2001, 8, 12) - d2 = Date(2001, 8, 12) - return d1 == d2 + d1 = pjtool.Date(2001, 8, 12) + d2 = pjtool.Date(2001, 8, 12) + assert d1 == d2 + - | + d1 = pjtool.Date(2001, 8, 12) + d2 = pjtool.Date(1999, 4, 5) + assert d1 != d2 - tester.py: functions: - dateTester(2) - printIfExecuted: False - - turbine.py: - classes: - - Turbine: - attributes: - - rating:int - - aNonExistantModule.py: - functions: - - aNonExistantFunction(1)
\ No newline at end of file +dependencies: + - matplotlib
\ No newline at end of file diff --git a/ExampleAssessments/example.yml b/ExampleAssessments/example.yml index bab1fb0..17ab9b0 100644 --- a/ExampleAssessments/example.yml +++ b/ExampleAssessments/example.yml @@ -12,6 +12,15 @@ files: - 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) @@ -19,4 +28,11 @@ files: classes: - Dog: - Cat: - - Kitten:
\ No newline at end of file + - Kitten: + tests: + - | + nibbles = animals.Kitten() + assert nibbles.speak() == "nyaa~~" + - | + milton = animals.Dog() + assert milton.move() == "*moves*"
\ No newline at end of file |