module battery.testing.test

Code Map

module battery.testing.test;


//! Test status
enum Result
{
	//! Test failed, regressed, is expected to succeed.
	FAIL,
	//! Test failed, but is expected to fail.
	XFAIL,
	//! Test passed, improved, but is expected to fail.
	XPASS,
	//! Test passed, and that was expected.
	PASS,
	//! Test was skipped.
	SKIPPED,
}

//! Base class for all types of tests.
class Test
{
public:
	name: string;
	msg: string;
	project: TestProject;
	result: Result;


public:
	this() { }
	fn runTest(CmdGroup);
	fn getOutput() string;
	fn getError() string;
}
enum Result

Test status

enum FAIL

Test failed, regressed, is expected to succeed.

enum XFAIL

Test failed, but is expected to fail.

enum XPASS

Test passed, improved, but is expected to fail.

enum PASS

Test passed, and that was expected.

enum SKIPPED

Test was skipped.

class Test

Base class for all types of tests.