libcester
Public Attributes | List of all members
super_test_instance Struct Reference

#include <cester.h>

Collaboration diagram for super_test_instance:
Collaboration graph
[legend]

Public Attributes

unsigned no_color
 
unsigned total_tests_count
 
unsigned total_tests_ran
 
unsigned total_failed_tests_count
 
unsigned total_passed_tests_count
 
unsigned total_test_errors_count
 
unsigned verbose_level
 
unsigned print_error_only
 
unsigned print_version
 
unsigned selected_test_cases_size
 
unsigned selected_test_cases_found
 
unsigned single_output_only
 
unsigned mem_test_active
 
unsigned stream_capture_active
 
unsigned current_execution_status
 
unsigned isolate_tests
 
unsigned skipped_test_count
 
unsigned todo_tests_count
 
unsigned format_test_name
 
unsigned report_success_regardless
 
unsigned report_failure_regardless
 
TestType current_cester_function_type
 
double start_tic
 
char * main_execution_output
 
char * flattened_cmd_argv
 
char * test_file_path
 
char * output_format
 
char * output_stream_str
 
char * captured_streams_tmp_folder
 
TestInstancetest_instance
 
FILE output_stream_address
 
FILE * output_stream
 
char ** selected_test_cases_names
 
TestCasecurrent_test_case
 
CesterArrayregistered_test_cases
 
CesterArraycaptured_streams
 
CesterArraymem_alloc_manager
 

Detailed Description

This structure manages the BEFORE and AFTER functions for the test main test_instance. And also accounts for all the registered test cases. This is for Cester internal use only.

Member Data Documentation

◆ captured_streams

CesterArray* super_test_instance::captured_streams

all the file stream captured for testing by cester. For internal use only.

◆ captured_streams_tmp_folder

char* super_test_instance::captured_streams_tmp_folder

The folder to store temporary file for captured streams. For internal use only.

◆ current_cester_function_type

TestType super_test_instance::current_cester_function_type

The current cester funtion type, this enable cester to properly track memory allocation in non test case functions. For internal use only.

◆ current_execution_status

unsigned super_test_instance::current_execution_status

the current test case status. This is used when the test cases run on a single process. For internal use only.

◆ current_test_case

TestCase* super_test_instance::current_test_case

The currently running test case. For internal use only.

◆ flattened_cmd_argv

char* super_test_instance::flattened_cmd_argv

Flattened command line argument for sub process. For internal use only.

◆ format_test_name

unsigned super_test_instance::format_test_name

Format the test name for fine output e.g. 'test_file_exit' becomes 'test file exist'. For internal use only.

◆ isolate_tests

unsigned super_test_instance::isolate_tests

Isolate each test case to run in different process to prevent a crashing test case from crahsing others. For internal use only.

◆ main_execution_output

char* super_test_instance::main_execution_output

The main test execution output in string. For internal use only. .

◆ mem_alloc_manager

CesterArray* super_test_instance::mem_alloc_manager

the array of allocated memory. For testing and detecting memory leaks. For internal use only.

◆ mem_test_active

unsigned super_test_instance::mem_test_active

Enable or disable memory test at runtime. Enabled by default. For internal use only.

◆ no_color

unsigned super_test_instance::no_color

Do not print to the console with color if one. For internal use only.

◆ output_format

char* super_test_instance::output_format

The output format to print the test result in. For internal use only.

◆ output_stream

FILE* super_test_instance::output_stream

Output stream to write message to, stdout by default. For internal use only.

◆ output_stream_address

FILE super_test_instance::output_stream_address

Output stream address. incase the output stream was captured in test it state can be reset. For internal use only.

◆ output_stream_str

char* super_test_instance::output_stream_str

The string value of the output stream pointer. For internal use only.

◆ print_error_only

unsigned super_test_instance::print_error_only

if false or 0 prints all t assertion evaluation result, default is 1/true

◆ print_version

unsigned super_test_instance::print_version

prints cester version before running tests

◆ registered_test_cases

CesterArray* super_test_instance::registered_test_cases

all the manually registered test cases in the instance. For internal use only.

◆ report_failure_regardless

unsigned super_test_instance::report_failure_regardless

If the value is set to 1 the test will be mark as failure even if it passes. For internal use only.

◆ report_success_regardless

unsigned super_test_instance::report_success_regardless

If the value is set to 1 the test will be mark as success even if it fails. For internal use only.

◆ selected_test_cases_found

unsigned super_test_instance::selected_test_cases_found

the number of selected test casses from command line that is found in the test file. For internal use only.

◆ selected_test_cases_names

char** super_test_instance::selected_test_cases_names

selected test cases from command line. For internal use only. e.g. –cester-test=Test2,Test1

◆ selected_test_cases_size

unsigned super_test_instance::selected_test_cases_size

the number of selected test casses from command line. For internal use only.

◆ single_output_only

unsigned super_test_instance::single_output_only

display the output for a single test only no summary and syntesis. For internal use only.

◆ skipped_test_count

unsigned super_test_instance::skipped_test_count

The number of test cases to be skipped. For internal use only.

◆ start_tic

double super_test_instance::start_tic

The unix time when the tests starts. For internal use only.

◆ stream_capture_active

unsigned super_test_instance::stream_capture_active

Enable or disable memory test at runtime. Enabled by default. For internal use only.

◆ test_file_path

char* super_test_instance::test_file_path

The main test file full path. For internal use only.

◆ test_instance

TestInstance* super_test_instance::test_instance

The test instance for sharing datas. For internal use only.

◆ todo_tests_count

unsigned super_test_instance::todo_tests_count

The number of test cases that would be implemented in future. For internal use only.

◆ total_failed_tests_count

unsigned super_test_instance::total_failed_tests_count

the total number of tests that failed. To use in your code call CESTER_TOTAL_FAILED_TESTS_COUNT

◆ total_passed_tests_count

unsigned super_test_instance::total_passed_tests_count

the total number of tests that passed. To use in your code call CESTER_TOTAL_FAILED_TESTS_COUNT

◆ total_test_errors_count

unsigned super_test_instance::total_test_errors_count

the total number of errors that occurs. To use in your code call CESTER_TOTAL_TEST_ERRORS_COUNT

◆ total_tests_count

unsigned super_test_instance::total_tests_count

the total number of tests to run, assert, eval e.t.c. To use in your code call CESTER_TOTAL_TESTS_COUNT

◆ total_tests_ran

unsigned super_test_instance::total_tests_ran

the total number of tests that was run e.t.c. To use in your code call CESTER_TOTAL_TESTS_RAN

◆ verbose_level

unsigned super_test_instance::verbose_level

the level of cester verbosity for how much information is printed in the terminal


The documentation for this struct was generated from the following file: