3 new revisions:

Revision: 6e54945c19ad
Branch:   default
Author:   Pekka Klärck
Date:     Thu Jan 30 09:43:51 2014 UTC
Log:      UG: Documentd that --rerunfailed replaced --runfailed...
http://code.google.com/p/robotframework/source/detail?r=6e54945c19ad

Revision: 2706e629a260
Branch:   default
Author:   Pekka Klärck
Date:     Thu Jan 30 09:46:39 2014 UTC
Log: Updated tests and some other places to use --rerunfailed instead of --...
http://code.google.com/p/robotframework/source/detail?r=2706e629a260

Revision: 84b21ac95de6
Branch:   default
Author:   Pekka Klärck
Date:     Thu Jan 30 09:48:03 2014 UTC
Log:      Renamed runfailed*.txt test files to rerunfailed*.txt...
http://code.google.com/p/robotframework/source/detail?r=84b21ac95de6

==============================================================================
Revision: 6e54945c19ad
Branch:   default
Author:   Pekka Klärck
Date:     Thu Jan 30 09:43:51 2014 UTC
Log:      UG: Documentd that --rerunfailed replaced --runfailed

Update issue 1641
UG documentation.
http://code.google.com/p/robotframework/source/detail?r=6e54945c19ad

Modified:
 /doc/userguide/src/Appendices/CommandLineOptions.rst
 /doc/userguide/src/ExecutingTestCases/ConfiguringExecution.rst

=======================================
--- /doc/userguide/src/Appendices/CommandLineOptions.rst Tue Nov 5 15:29:59 2013 UTC +++ /doc/userguide/src/Appendices/CommandLineOptions.rst Thu Jan 30 09:43:51 2014 UTC
@@ -20,7 +20,8 @@
   -G, --settag <tag>      `Sets the tag(s)`_ to all executed test cases.
   -t, --test <name>       `Selects the test cases by name`_.
   -s, --suite <name>      `Selects the test suites`_ by name.
- -R, --runfailed <file> `Selects failed tests`_ from an earlier `output file`_ to be re-executed. + -R, --rerunfailed <file> `Selects failed tests`_ from an earlier `output file`_ to be re-executed.
+  --runfailed <file>      Deprecated. Use :opt:`--rerunfailed` instead.
   -i, --include <tag>     `Selects the test cases`_ by tag.
   -e, --exclude <tag>     `Selects the test cases`_ by tag.
-c, --critical <tag> Tests that have the given tag are `considered critical`_.
=======================================
--- /doc/userguide/src/ExecutingTestCases/ConfiguringExecution.rst Sat Jan 25 22:23:45 2014 UTC +++ /doc/userguide/src/ExecutingTestCases/ConfiguringExecution.rst Thu Jan 30 09:43:51 2014 UTC
@@ -114,15 +114,15 @@
 Re-executing failed test cases
 ''''''''''''''''''''''''''''''

-Command line option `--runfailed (-R)` can be used to select all failed tests +Command line option `--rerunfailed (-R)` can be used to select all failed tests
 from an earlier `output file`_ for re-execution. This option is useful, for
 example, if running all tests takes a lot of time and one wants to
 iteratively fix failing test cases.

 ::

-  pybot tests                           # first execute all tests
-  pybot --runfailed output.xml tests    # then re-execute failing
+  pybot tests                             # first execute all tests
+  pybot --rerunfailed output.xml tests    # then re-execute failing

Behind the scenes this option selects the failed tests as they would have been selected individually with the :opt:`--test` option. It is possible to further
@@ -134,7 +134,9 @@
 contains no failed tests. Using a special value :opt:`NONE` as the output
 is same as not specifying this option at all.

-.. note:: This is a new option in Robot Framework 2.8.
+.. note:: Re-executing failed tests is a new feature in Robot Framework 2.8. + Prior Robot Framework 2.8.4 the option was named :opt:`--runfailed`.
+          The old name still works, but it will be removed in the future.

 When no tests match selection
 '''''''''''''''''''''''''''''

==============================================================================
Revision: 2706e629a260
Branch:   default
Author:   Pekka Klärck
Date:     Thu Jan 30 09:46:39 2014 UTC
Log: Updated tests and some other places to use --rerunfailed instead of --runfailed.

Update issue 1641
Found some more places that still used --runfailed.
http://code.google.com/p/robotframework/source/detail?r=2706e629a260

Modified:
 /atest/robot/cli/runner/runfailed_corners.txt
 /atest/robot/rebot/rerun_merge.txt
 /src/robot/rebot.py

=======================================
--- /atest/robot/cli/runner/runfailed_corners.txt Tue Nov 19 08:31:47 2013 UTC +++ /atest/robot/cli/runner/runfailed_corners.txt Thu Jan 30 09:46:39 2014 UTC
@@ -8,7 +8,7 @@

 *** Test Cases ***
 Runs everything when output is set to NONE
-    Run Tests  --RunFailed NoNe  cli/runfailed/onlypassing
+    Run Tests  --ReRunFailed NoNe  cli/runfailed/onlypassing
     File Should Exist  ${OUTFILE}
     Check Test Case    Passing

@@ -20,12 +20,12 @@

 Stops on error when output contains only non-existing failing test cases
     Generate output  cli/runfailed/runfailed2.txt
- Run Tests Without Processing Output --RUNF ${RUN FAILED FROM} cli/runfailed/onlypassing + Run Tests Without Processing Output --RERUN ${RUN FAILED FROM} cli/runfailed/onlypassing
     Stderr Should Be Equal To
... [ ERROR ] Suite 'Onlypassing' contains no tests named 'Runfailed2.Failing' or 'Runfailed2.Failing With Tag'.${USAGE TIP}\n

 Stops on error when output does not exist
- Run Tests Without Processing Output --runfailed nonex.xml cli/runfailed/onlypassing + Run Tests Without Processing Output --rerunfailed nonex.xml cli/runfailed/onlypassing
     Stderr Should Match
     ...  [ ERROR ] Collecting failed tests from 'nonex.xml' failed:
     ...  Reading XML source 'nonex.xml' failed:
@@ -33,7 +33,7 @@

 Stops on error when output is invalid
     Create File  ${RUN FAILED FROM}  <xml><but not='correct'/></xml>
- Run Tests Without Processing Output --runfailed ${RUN FAILED FROM} cli/runfailed/onlypassing + Run Tests Without Processing Output --rerunfailed ${RUN FAILED FROM} cli/runfailed/onlypassing
     Stderr Should Be Equal To
... [ ERROR ] Collecting failed tests from '${RUN FAILED FROM}' failed:
     ...  Reading XML source '${RUN FAILED FROM}' failed:
=======================================
--- /atest/robot/rebot/rerun_merge.txt  Wed Jan 29 15:30:44 2014 UTC
+++ /atest/robot/rebot/rerun_merge.txt  Thu Jan 30 09:46:39 2014 UTC
@@ -69,7 +69,7 @@
     ...    SubSuite1 First=FAIL:This test was doomed to fail: YES != NO

 Rerun tests
- Create Output With Robot ${RERUN} --runfailed ${ORIGINAL} ${TEST CASES} + Create Output With Robot ${RERUN} --rerunfailed ${ORIGINAL} ${TEST CASES}
     Should Be Equal    ${SUITE.name}    Suites
     Should Contain Suites    ${SUITE}    @{RERUN SUITES}
     Should Contain Suites    ${SUITE.suites[1]}    @{SUB SUITES 1}[0]
=======================================
--- /src/robot/rebot.py Thu Jan 30 08:20:41 2014 UTC
+++ /src/robot/rebot.py Thu Jan 30 09:46:39 2014 UTC
@@ -97,7 +97,7 @@
                           with --include.
-R --rerunmerge Combine results of re-running tests so that tests in the latter runs replace the original. Typically used - after using --runfailed option when running tests. + after using --rerunfailed option when running tests.
                           Example: rebot --rerunmerge orig.xml rerun.xml
--processemptysuite Processes output also if the top level test suite is empty. Useful e.g. with --include/--exclude when it

==============================================================================
Revision: 84b21ac95de6
Branch:   default
Author:   Pekka Klärck
Date:     Thu Jan 30 09:48:03 2014 UTC
Log:      Renamed runfailed*.txt test files to rerunfailed*.txt

Update issue 1641
Status: Done
Renamed test files. This issue ought to be done.
http://code.google.com/p/robotframework/source/detail?r=84b21ac95de6

Added:
 /atest/robot/cli/runner/rerunfailed.txt
 /atest/robot/cli/runner/rerunfailed_corners.txt
Deleted:
 /atest/robot/cli/runner/runfailed.txt
 /atest/robot/cli/runner/runfailed_corners.txt

=======================================
--- /dev/null
+++ /atest/robot/cli/runner/rerunfailed.txt     Thu Jan 30 09:48:03 2014 UTC
@@ -0,0 +1,50 @@
+*** Settings ***
+Suite Setup       Suite initialization
+Suite Teardown    Remove Directory    ${RERUN DIR}    recursive
+Force Tags        regression    pybot    jybot
+Resource          atest_resource.txt
+
+*** Variables ***
+${ORIG DIR}           ${DATADIR}/cli/runfailed
+${RERUN DIR}          %{TEMPDIR}/rerun-dir
+${SUITE DIR}          ${RERUN DIR}/suite
+${RUN FAILED FROM}    ${RERUN DIR}/rerun-output.xml
+
+*** Test Cases ***
+Passing is not re-executed
+ Run Keyword And Expect Error No test 'Passing' found* Check Test Case Passing
+
+Failing is re-executed
+    Check Test Case    Failing
+
+Failing from subsuite is executed
+    Check Test Case    Really Failing
+
+Explicitly selected is executed
+    Check Test Case    Selected
+
+Excluded failing is not executed
+ Run Keyword And Expect Error No test 'Failing with tag' found* Check Test Case Failing with tag
+
+Non-existing failing from output file is not executed
+ Run Keyword And Expect Error No test 'Only in one suite' found* Check Test Case Only in one suite
+
+--runfailed still works without warnings
+ [Documentation] --runfailed should be deprecated in RF 2.9 and removed later + Run Tests --runfailed ${RUN FAILED FROM} --test Selected --exclude tag ${SUITE DIR}
+    Should Be Empty    ${ERRORS}
+ Run Keyword And Expect Error No test 'Passing' found* Check Test Case Passing
+    Check Test Case    Failing
+    Check Test Case    Really Failing
+    Check Test Case    Selected
+ Run Keyword And Expect Error No test 'Failing with tag' found* Check Test Case Failing with tag + Run Keyword And Expect Error No test 'Only in one suite' found* Check Test Case Only in one suite
+
+*** Keywords ***
+Suite initialization
+    Copy Directory    ${ORIG DIR}/suite    ${SUITE DIR}
+    Copy File    ${ORIG DIR}/runfailed1.txt    ${SUITE DIR}/runfailed.txt
+    Run Tests    ${EMPTY}    ${SUITE DIR}
+    Copy File    ${OUTFILE}    ${RUN FAILED FROM}
+    Copy File    ${ORIG DIR}/runfailed2.txt    ${SUITE DIR}/runfailed.txt
+ Run Tests --rerunfailed ${RUN FAILED FROM} --test Selected --exclude tag ${SUITE DIR}
=======================================
--- /dev/null
+++ /atest/robot/cli/runner/rerunfailed_corners.txt Thu Jan 30 09:48:03 2014 UTC
@@ -0,0 +1,46 @@
+*** Settings ***
+Force Tags        regression  pybot  jybot
+Resource          atest_resource.txt
+Suite Teardown    Remove File  ${RUN FAILED FROM}
+
+*** Variables ***
+${RUN FAILED FROM}    %{TEMPDIR}${/}run-failed-output.xml
+
+*** Test Cases ***
+Runs everything when output is set to NONE
+    Run Tests  --ReRunFailed NoNe  cli/runfailed/onlypassing
+    File Should Exist  ${OUTFILE}
+    Check Test Case    Passing
+
+Stops on error when output contains only passing test cases
+    Generate output  cli/runfailed/onlypassing
+ Run Tests Without Processing Output -R ${RUN FAILED FROM} cli/runfailed/onlypassing
+    Stderr Should Be Equal To
+ ... [ ERROR ] Collecting failed tests from '${RUN FAILED FROM}' failed: All tests passed.${USAGE TIP}\n
+
+Stops on error when output contains only non-existing failing test cases
+    Generate output  cli/runfailed/runfailed2.txt
+ Run Tests Without Processing Output --RERUN ${RUN FAILED FROM} cli/runfailed/onlypassing
+    Stderr Should Be Equal To
+ ... [ ERROR ] Suite 'Onlypassing' contains no tests named 'Runfailed2.Failing' or 'Runfailed2.Failing With Tag'.${USAGE TIP}\n
+
+Stops on error when output does not exist
+ Run Tests Without Processing Output --rerunfailed nonex.xml cli/runfailed/onlypassing
+    Stderr Should Match
+    ...  [ ERROR ] Collecting failed tests from 'nonex.xml' failed:
+    ...  Reading XML source 'nonex.xml' failed:
+    ...  No such file*${USAGE TIP}\n
+
+Stops on error when output is invalid
+    Create File  ${RUN FAILED FROM}  <xml><but not='correct'/></xml>
+ Run Tests Without Processing Output --rerunfailed ${RUN FAILED FROM} cli/runfailed/onlypassing
+    Stderr Should Be Equal To
+ ... [ ERROR ] Collecting failed tests from '${RUN FAILED FROM}' failed:
+    ...  Reading XML source '${RUN FAILED FROM}' failed:
+    ...  Incompatible XML element 'xml'.${USAGE TIP}\n
+
+*** Keywords ***
+Generate Output
+    [Arguments]  ${datafile}
+    Run Tests  ${EMPTY}  ${datafile}
+    Copy File  ${OUTFILE}  ${RUN FAILED FROM}
=======================================
--- /atest/robot/cli/runner/runfailed.txt       Thu Jan 30 09:28:17 2014 UTC
+++ /dev/null
@@ -1,50 +0,0 @@
-*** Settings ***
-Suite Setup       Suite initialization
-Suite Teardown    Remove Directory    ${RERUN DIR}    recursive
-Force Tags        regression    pybot    jybot
-Resource          atest_resource.txt
-
-*** Variables ***
-${ORIG DIR}           ${DATADIR}/cli/runfailed
-${RERUN DIR}          %{TEMPDIR}/rerun-dir
-${SUITE DIR}          ${RERUN DIR}/suite
-${RUN FAILED FROM}    ${RERUN DIR}/rerun-output.xml
-
-*** Test Cases ***
-Passing is not re-executed
- Run Keyword And Expect Error No test 'Passing' found* Check Test Case Passing
-
-Failing is re-executed
-    Check Test Case    Failing
-
-Failing from subsuite is executed
-    Check Test Case    Really Failing
-
-Explicitly selected is executed
-    Check Test Case    Selected
-
-Excluded failing is not executed
- Run Keyword And Expect Error No test 'Failing with tag' found* Check Test Case Failing with tag
-
-Non-existing failing from output file is not executed
- Run Keyword And Expect Error No test 'Only in one suite' found* Check Test Case Only in one suite
-
---runfailed still works without warnings
- [Documentation] --runfailed should be deprecated in RF 2.9 and removed later - Run Tests --runfailed ${RUN FAILED FROM} --test Selected --exclude tag ${SUITE DIR}
-    Should Be Empty    ${ERRORS}
- Run Keyword And Expect Error No test 'Passing' found* Check Test Case Passing
-    Check Test Case    Failing
-    Check Test Case    Really Failing
-    Check Test Case    Selected
- Run Keyword And Expect Error No test 'Failing with tag' found* Check Test Case Failing with tag - Run Keyword And Expect Error No test 'Only in one suite' found* Check Test Case Only in one suite
-
-*** Keywords ***
-Suite initialization
-    Copy Directory    ${ORIG DIR}/suite    ${SUITE DIR}
-    Copy File    ${ORIG DIR}/runfailed1.txt    ${SUITE DIR}/runfailed.txt
-    Run Tests    ${EMPTY}    ${SUITE DIR}
-    Copy File    ${OUTFILE}    ${RUN FAILED FROM}
-    Copy File    ${ORIG DIR}/runfailed2.txt    ${SUITE DIR}/runfailed.txt
- Run Tests --rerunfailed ${RUN FAILED FROM} --test Selected --exclude tag ${SUITE DIR}
=======================================
--- /atest/robot/cli/runner/runfailed_corners.txt Thu Jan 30 09:46:39 2014 UTC
+++ /dev/null
@@ -1,46 +0,0 @@
-*** Settings ***
-Force Tags        regression  pybot  jybot
-Resource          atest_resource.txt
-Suite Teardown    Remove File  ${RUN FAILED FROM}
-
-*** Variables ***
-${RUN FAILED FROM}    %{TEMPDIR}${/}run-failed-output.xml
-
-*** Test Cases ***
-Runs everything when output is set to NONE
-    Run Tests  --ReRunFailed NoNe  cli/runfailed/onlypassing
-    File Should Exist  ${OUTFILE}
-    Check Test Case    Passing
-
-Stops on error when output contains only passing test cases
-    Generate output  cli/runfailed/onlypassing
- Run Tests Without Processing Output -R ${RUN FAILED FROM} cli/runfailed/onlypassing
-    Stderr Should Be Equal To
- ... [ ERROR ] Collecting failed tests from '${RUN FAILED FROM}' failed: All tests passed.${USAGE TIP}\n
-
-Stops on error when output contains only non-existing failing test cases
-    Generate output  cli/runfailed/runfailed2.txt
- Run Tests Without Processing Output --RERUN ${RUN FAILED FROM} cli/runfailed/onlypassing
-    Stderr Should Be Equal To
- ... [ ERROR ] Suite 'Onlypassing' contains no tests named 'Runfailed2.Failing' or 'Runfailed2.Failing With Tag'.${USAGE TIP}\n
-
-Stops on error when output does not exist
- Run Tests Without Processing Output --rerunfailed nonex.xml cli/runfailed/onlypassing
-    Stderr Should Match
-    ...  [ ERROR ] Collecting failed tests from 'nonex.xml' failed:
-    ...  Reading XML source 'nonex.xml' failed:
-    ...  No such file*${USAGE TIP}\n
-
-Stops on error when output is invalid
-    Create File  ${RUN FAILED FROM}  <xml><but not='correct'/></xml>
- Run Tests Without Processing Output --rerunfailed ${RUN FAILED FROM} cli/runfailed/onlypassing
-    Stderr Should Be Equal To
- ... [ ERROR ] Collecting failed tests from '${RUN FAILED FROM}' failed:
-    ...  Reading XML source '${RUN FAILED FROM}' failed:
-    ...  Incompatible XML element 'xml'.${USAGE TIP}\n
-
-*** Keywords ***
-Generate Output
-    [Arguments]  ${datafile}
-    Run Tests  ${EMPTY}  ${datafile}
-    Copy File  ${OUTFILE}  ${RUN FAILED FROM}

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to