SRunner
Object Hierarchy:
Description:
[ Compact ]
[ CCode ( cname = "SRunner" , cprefix = "srunner_" , free_function = "srunner_free" ) ]
public class SRunner
Holds state for a running of a test suite
Content:
Creation methods:
Methods:
- public void add_suite (Suite s)
Add an additional suite to a suite runner.
- public (unowned TestResult)[] failures ()
Return an array of results for all failures found by a suite runner.
- public ForkStatus fork_status ()
Retrieve the current fork status for the given suite runner
- public bool has_log ()
Checks if the suite runner is assigned a file for log output.
- public bool has_tap ()
Checks if the suite runner is assigned a file for TAP output.
- public bool has_xml ()
Checks if the suite runner is assigned a file for XML output.
- public unowned string? log_fname ()
Retrieves the name of the currently assigned file for log output, if
any exists.
- public int ntests_failed ()
Retrieve the number of failed tests executed by a suite runner.
- public int ntests_run ()
Retrieve the total number of tests run by a suite runner.
- public void print (PrintOutput print_mode)
Print the results contained in an SRunner to stdout.
- public (unowned TestResult)[] results ()
Return an array of results for all tests run by a suite runner.
- public void run (string? sname = null, string? tcname = null, PrintOutput print_mode = NORMAL)
Run a specific suite or test case from a suite runner, printing
results to stdout as specified by the print_mode.
- public void run_all (PrintOutput print_mode = NORMAL)
Runs a suite runner and all contained suite, printing results to
stdout as specified by the print_mode.
- public void set_fork_status (ForkStatus fstat)
Set the fork status for a given suite runner.
- public void set_log (string fname)
Set the suite runner to output the result in log format to the given
file.
- public void set_tap (string fname)
Set the suite runner to output the result in TAP format to the given
file.
- public void set_xml (string fname)
Set the suite runner to output the result in XML format to the given
file.
- public unowned string? tap_fname ()
Retrieves the name of the currently assigned file for TAP output, if
any exists.
- public unowned string? xml_fname ()
Retrieves the name of the currently assigned file for XML output, if
any exists.