classxfant::Xfant

sys::Obj
  xfant::Xfant

Prepare the test cases and execute them, finally reports the results in Xml.

add

@Operator
This add(Obj obj)

Add a target to test.

addAll

This addAll(Obj[] targets)

Add a list of targets to test.

addTest

This addTest(Xtest test)

Add a test to execute

addTestFromSlot

This addTestFromSlot(Slot slot)

Add a test from a method/slot.

addTestFromStr

This addTestFromStr(Str pattern)

Match a pattern with a slot, type or pod.

The Slot pattern is in the form of pod::type.slot. The Type pattern is pod::type. The Pod pattern is pod

addTestFromType

This addTestFromType(Type type)

Add a test from a type.

addTestsFromPod

This addTestsFromPod(Pod pod)

Add all test from a pod. For each class in the pod a new test is added.

hasTests

Bool hasTests()

There are tests cases?

make

new make(|This f)

Constructor

report

Void report(OutStream out)

Write a report of the results in out stream

results

XTestResult[] results := XTestResult[,]

Test results collected

run

Void run()

Run the test cases and saves the results

runner

TestRunner runner := TestRunner.<ctor>()

Test runner

tests

Xtest[] tests := Xtest[,]

Test cases to execute