Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetcl
tester.exe -project "C:\tester projects\developer x64.tester"$tester_project" -gui 0 -source "$TESTERDIR"/xunit_log.tcl -xunit_log "$BASEDIR"/test-reports/TEST-tester-tiny-cases-$timestamp.xml -verbose 1 -eval "tester::run_all ; tester::exit_with_error_code"

Here the file xunit_log.tcl is defining procs to write the report in the desired xml format, and implementing some tester events

-source $tcl_filename

to evaluate the tcl code written in a .tcl file

...

Code Block
languagetcl
tester.exe -project "$tester_project" -gui 0 -project "C:\tester projects\developer x64.tester" -source xunit_log.tclsource "$TESTERDIR"/xunit_log.tcl -xunit_log "$BASEDIR"/test-reports/TEST-tester-tiny-cases-$timestamp.xml -verbose 1 -eval "tester::run_all ; tester::exit_with_error_code"

in this example the external file xunit_log.tcl define procs to write results in the desired format, and implement some tester events to open the document, print and close it.

proc ::tester::event_before_run_cases { lst_cases_ids}

proc ::tester::event_after_run_case { case_id}

proc ::tester::event_after_run_cases { case_ids}

View file
namexunit_log.tcl

-verbose 0|1

for debugging tester purposes, printing more warnings and error messages