api

test_env.ch

Declarations in test_env.ch

8 declarationstest_env

Declarations

Public only
LogType#
Publicenum
enum LogType { Information, Warning, Success, Error, Panic, UnknownFailure, ConfigFailure, IOFailure, NetworkFailure, MemoryFailure, RuntimeFailure, OutOfBoundFailure, ResourceFailure, TodoFailure, SecurityFailure, WTFFailure }
TestEnv#
Publicinterface
interface TestEnv
this interface is exposed to client testing environment tests use this interface to send messages to the parent executable
get_test_id#
Publicfunction
func get_test_id(self : &TestEnv) : int
* get the current test id * less than zero when not known due to a failure
get_group_name#
Publicfunction
func get_group_name(self : &TestEnv) : string_view
* get the group name this test belongs to * empty when belongs to no group
logIt#
Publicfunction
func logIt(self : &TestEnv, type : LogType, msg : *char, lineNum : uint, charNum : uint) : void
* this function logs it
quit_current_group#
Publicfunction
func quit_current_group(self : &TestEnv, reason : *char) : void
* quits the current group of tests
quit_all_tests#
Publicfunction
func quit_all_tests(self : &TestEnv, reason : *char) : void
* quit all the tests running
info#
PublicfunctionExtension
func info(env : &TestEnv, msg : *char) : void
warning#
PublicfunctionExtension
func warning(env : &TestEnv, msg : *char) : void
warn#
PublicfunctionExtension
func warn(env : &TestEnv, msg : *char) : void
success#
PublicfunctionExtension
func success(env : &TestEnv, msg : *char) : void
error#
PublicfunctionExtension
func error(env : &TestEnv, msg : *char) : void
panic#
PublicfunctionExtension
func panic(env : &TestEnv, msg : *char) : void