...
Code Block | ||
---|---|---|
| ||
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
...
-xunit_log $xunit_filename
used to run tester without GUI, load a project, run its cases, write a log file with xunit xml syntax and exit (e.g. to be used in a git pipeline)
example:
Code Block | ||
---|---|---|
| ||
tester.exe -project "$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" |
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 | ||
---|---|---|
|
-verbose 0|1
for debugging tester purposes, printing more warnings and error messages