[limb-issues] ! Created: (TR-16) Wrong "failures" counting

Samoded Alexey (JIRA) jira at limb-project.com
Fri Aug 17 11:41:56 MSD 2007


Wrong "failures" counting
-------------------------

                 Key: TR-16
                 URL: http://jira.limb-project.com/browse/TR-16
             Project: TESTS_RUNNER
          Issue Type: Bug
         Environment: linux, php5, limb3
            Reporter: Samoded Alexey
         Assigned To: Pavel Shevaev
            Priority: Minor


after executing commands like this:

limb_unit -c /home/lifer/tools/coloredReporter.php ./tests/cases/rowTest.class.php ./tests/cases/tableTest.class.php ./tests/cases/creativeCellTest.class.php

if there were failure in some testCase, all other testsCases, which goes after that testCase, will be counted as Failed tests.

Example:
----------------------------------------------
[lifer at limbo ~/test/genericConfluenceTable]$ limb_unit -c /home/lifer/tools/coloredReporter.php ./tests/cases/rowTest.class.php ./tests/cases/tableTest.class.php ./tests/cases/creativeCellTest.class.php
rowTest.class.php
1 of 1 done(rowTest)

OK
Test cases run: 1/1, Passes: 2, Failures: 0, Exceptions: 0
tableTest.class.php
1) Value [NULL] should be type [row] at [/usr/local/private/home/lifer/test/genericConfluenceTable/tests/cases/tableTest.class.php line 76]
        in testAddRow
        in tableTest
        in tableTest.class.php
        in Group test in "/usr/local/private/home/lifer/test/genericConfluenceTable/tests/cases"
        in Group test in "/usr/local/private/home/lifer/test/genericConfluenceTable/tests"
        in Group test in "/usr/local/private/home/lifer/test/genericConfluenceTable"
        in Group test in "/usr/local/private/home/lifer/test"
        in Group test in "/usr/local/private/home/lifer"
        in Group test in "/usr/local/private/home"
        in Group test in "/usr/local/private"
        in Group test in "/usr/local"
        in Group test in "/usr"
Exception 1!
Unexpected PHP error [Undefined variable: inputData] severity [E_NOTICE] in [/usr/local/private/home/lifer/test/genericConfluenceTable/src/table.class.php line 108]
        in testAddRow
        in tableTest
        in tableTest.class.php
        in Group test in "/usr/local/private/home/lifer/test/genericConfluenceTable/tests/cases"
        in Group test in "/usr/local/private/home/lifer/test/genericConfluenceTable/tests"
        in Group test in "/usr/local/private/home/lifer/test/genericConfluenceTable"
        in Group test in "/usr/local/private/home/lifer/test"
        in Group test in "/usr/local/private/home/lifer"
        in Group test in "/usr/local/private/home"
        in Group test in "/usr/local/private"
        in Group test in "/usr/local"
        in Group test in "/usr"
2 of 1 done(tableTest)

FAILURES!!!
Test cases run: 2/1, Passes: 20, Failures: 1, Exceptions: 1
creativeCellTest.class.php
3 of 1 done(creativeCellTest)

FAILURES!!!
Test cases run: 3/1, Passes: 23, Failures: 1, Exceptions: 1
1.258 sec.
----------------------------------------------

in this example only second test case has errors.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the limb-issues mailing list