~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/tutorial/TestSuite_output.txt

  • Committer: stevenbird
  • Date: 2007-12-05 22:41:05 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:7
GPL license

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
The output of running a problem suite is a next dictionary that can easily be converted into json:
2
 
 
3
 
--------
4
 
problem
5
 
--------
6
 
Normal case:
7
 
problem = {
8
 
        name: name of problem <string>
9
 
        cases: test case results <list(case)>
10
 
}
11
 
 
12
 
Critical error occured (Syntax, Indentation, FunctionNotFound):
13
 
problem = {
14
 
        name: name of problem <string>
15
 
        critical_error: details of error <exception_data>
16
 
}
17
 
 
18
 
----
19
 
case
20
 
----
21
 
Normal:
22
 
case = {
23
 
        name: name of test case <string>
24
 
        parts: test part results <list(part)>
25
 
        passed: all parts passed <bool>
26
 
}
27
 
 
28
 
Exception occured:
29
 
case = {
30
 
        name: name of test case <string>
31
 
        exception: details of exception <exception_data>
32
 
        passed: False <bool>
33
 
}
34
 
 
35
 
----
36
 
part
37
 
----
38
 
Part passed:
39
 
part = {
40
 
        description: <string>
41
 
        passed: True <bool>
42
 
}
43
 
 
44
 
Part failed:
45
 
part = {
46
 
        description: <string>
47
 
        passed: False <bool>
48
 
        error_message: <string>
49
 
}
50
 
 
51
 
--------------
52
 
exception_data
53
 
--------------
54
 
exception_data = {
55
 
        name: class name of exception <string>
56
 
        detail: extra info <string>
57
 
        critical: does exception prevent all tests from being run <bool>
58
 
}