
| Key: |
MDL-17295
|
| Type: |
Sub-task
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Tim Hunt
|
| Reporter: |
Tim Hunt
|
| Votes: |
0
|
| Watchers: |
1
|
|
|
| Participants: |
Olli Savolainen and Tim Hunt
|
| Security Level: |
None
|
| Resolved date: |
23/Nov/08
|
| Affected Branches: |
MOODLE_20_STABLE
|
| Fixed Branches: |
MOODLE_20_STABLE
|
These functions have become much trickier. However, they look like they should be really easy to unit test.
You can start by copying mod/quiz/simpletest/testlib.php to mod/quiz/simpletest/testlocallib.php then edit. The docs are at http://docs.moodle.org/en/Development:Unit_tests. You will probably need to use assertEquals.
|
|
Description
|
These functions have become much trickier. However, they look like they should be really easy to unit test.
You can start by copying mod/quiz/simpletest/testlib.php to mod/quiz/simpletest/testlocallib.php then edit. The docs are at http://docs.moodle.org/en/Development:Unit_tests. You will probably need to use assertEquals. |
Show » |
made changes - 23/Nov/08 03:15 AM
| Field |
Original Value |
New Value |
|
Assignee
|
Olli Savolainen
[ pilpi
]
|
Tim Hunt
[ timhunt
]
|
tjhunt committed 2 files to 'Moodle CVS' - 23/Nov/08 09:46 PM
quiz unittests: MDL-17295 start writing unit tests for some of mod/quiz/locallib.php - and fix the bugs they revealed!
|
|
|
made changes - 23/Nov/08 09:48 PM
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
|
Resolution
|
|
Fixed
[ 1
]
|
|
I probably could learn to write those test cases with a moderate amount of work, but I am really running out of time.
Most importantly though, I really hope to focus exclusively on usability work and not on the programming, and this is rather far from that goal - it won't serve any greater purpose to focus on learning that right now.