#585 Test suite - it would be nice to have a 'log' option

None
pending
ooTest (3)
complete
1
2014-02-09
2014-02-09
No

Walter Pachl has requested an option to log the results of running the test suite. Although his request comes from his inability to copy and paste from a command prompt window, it is not a bad idea.

The logging will be just of the test results that are printed at the completion of a test run.

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2014-02-09

    Committed revision 9912. [r9912]

    The feature is implemented and tested. To log the results use a l option:

    C:\work.ooRexx\wc\ooTest\4.x>testOORexx.rex --help
    testOORexx version 1.1.0 ooTest Framework version 1.0.0_4.0.0

    ...

    Output control:
    -l -DlogFile=FILE Put test results in log file FILE
    -L -DlogFileAppend=bool Append test results to log file
    ...

    The small l: -l names the log file. Relative or absolute file names can be used. A file name with no path information is placed in the directory the test suite is run from.

    The -L option, if true, will append the test results to an existing file. If -L is omitted, or false, "write replace" is used.

    Example:

    testOORexx.rex -l .\ooTest.log -f ooRexx\base\keyword\SELECT.testGroup -V 5

    ooTest.log:

    ooTest Framework - Automated Test of the ooRexx Interpreter

    Interpreter: REXX-ooRexx_4.2.0(MT)_64-bit 6.04 30 Jan 2014
    Addressing Mode: 64
    ooRexxUnit: 2.0.0_3.2.0 ooTest: 1.0.0_4.0.0

    Tests ran: 20
    Assertions: 22
    Failures: 0
    (Known failures:) 0
    Errors: 0
    Exceptions: 0
    Skipped files: 0
    Messages: 0
    Logs: 0

    Interpreter: REXX-ooRexx_4.2.0(MT)_64-bit 6.04 30 Jan 2014
    Addressing Mode: 64
    ooRexxUnit: 2.0.0_3.2.0 ooTest: 1.0.0_4.0.0

    Tests ran: 20
    Assertions: 22
    Failures: 0
    (Known failures:) 0
    Errors: 0
    Exceptions: 0
    Skipped files: 0
    Messages: 0
    Logs: 0

    File search: 00:00:00.010000
    Suite construction: 00:00:00.002000
    Test execution: 00:00:00.007000
    Total time: 00:00:01.018000

    With the log option, the test results are still printed to the screen. Using the -L option without the -l option generates an error.

    C:\work.ooRexx\wc\ooTest\4.x>testOORexx.rex -L
    testOORexx version 1.1.0 ooTest Framework version 1.0.0_4.0.0

    Bad command line
    CommandLine: -L
    The -L option can not be used without the -l option

    usage: testOORexx [OPTIONS]
    Try 'testOORexx --help' for more information.

    C:\work.ooRexx\wc\ooTest\4.x>

    I've tested this fairly well, it seems okay. If anyone has any problems with it, post on the developers list.

     

    Related

    Commit: [r9912]

  • Mark Miesfeld

    Mark Miesfeld - 2014-02-09
    • status: accepted --> pending
    • Pending work items: code+test --> complete
     


Anonymous

Cancel  Add attachments