Revision: 3819
Author: pekka.klarck
Date: Thu Jul 22 06:40:10 2010
Log: Better tests for multiple failures in dry-run mode -- these tests would have found the bug in issue 600 that is already fixed. Also some explanations to the test data.
http://code.google.com/p/robotframework/source/detail?r=3819

Modified:
 /trunk/atest/testdata/cli/dryrun/dryrun.txt
 /trunk/atest/testdata/cli/dryrun/more_tests.txt

=======================================
--- /trunk/atest/testdata/cli/dryrun/dryrun.txt Mon May 24 12:05:45 2010
+++ /trunk/atest/testdata/cli/dryrun/dryrun.txt Thu Jul 22 06:40:10 2010
@@ -16,7 +16,7 @@
     Simple UK

 Keywords that would fail
-    Fail
+    Fail  Not actually executed so won't fail.
     Fail In Uk
     No Operation

@@ -53,8 +53,14 @@
     Invalid Syntax UK

 Multiple Failures
- [Documentation] FAIL Several failures occurred:\n\n1) Keyword 'BuiltIn.Should Be Equal' expected 2 to 4 arguments, got 1.\n\n2) No keyword with name 'Does not exist' found.
+    [Documentation]  FAIL Several failures occurred:\n\n
+ ... 1) Keyword 'BuiltIn.Should Be Equal' expected 2 to 4 arguments, got 1.\n\n
+    ...  2) Invalid argument '${arg'\n\n
+    ...  3) Keyword 'BuiltIn.Log' expected 1 to 2 arguments, got 4.\n\n
+ ... 4) No keyword with name 'Yet another non-existing keyword' found.\n\n
+    ...  5) No keyword with name 'Does not exist' found.
     Should Be Equal  1
+    UK with multiple failures
     Does not exist

 Arguments given as list variable
@@ -74,6 +80,10 @@
     No Operation

 Some Return Value
-    [Arguments]  ${a1}  @{a2}
-    [Return]  ${...@{a2[1]}
-
+    [Arguments]  ${a1}  ${a2}
+    [Return]  ${a1}-${a2}
+
+UK with multiple failures
+    Invalid Syntax UK
+    Log  too  many  arguments  here
+    Yet another non-existing keyword
=======================================
--- /trunk/atest/testdata/cli/dryrun/more_tests.txt     Tue May 11 00:44:33 2010
+++ /trunk/atest/testdata/cli/dryrun/more_tests.txt     Thu Jul 22 06:40:10 2010
@@ -1,6 +1,6 @@
 *** Test Cases ***
 Some other test
[Documentation] FAIL Keyword 'BuiltIn.Log' expected 1 to 2 arguments, got 0.
-    Fail
+    Fail  Not actually executed so won't fail.
     Log

Reply via email to