-
Notifications
You must be signed in to change notification settings - Fork 7
Custom Reporter
arypurnomoz edited this page Apr 18, 2014
·
1 revision
To use your custom reporter just add this line to your testConfig.jl
reporter = "path/to/custom/reporter"
A reporter file is, a file that has these function signature:
-
report(desc::Description)
- Will be called every time a
describe
finished running
- Will be called every time a
-
passReport(test::Test, elapsed::Int)
- Will be executed every time a
it
run without any error
- Will be executed every time a
-
failedReport(err::Error)
- Will be executed every time an error is thrown in the
it
function
- Will be executed every time an error is thrown in the
-
failedReport(err::DescriptionError)
- Will be executed every time an error is thronw when running
describe
function
- Will be executed every time an error is thronw when running
-
summaryReport(passes::Array{Test,1},errors::Array{Union(Error,DescriptionError),1}, timeElapsed::Int)
- Will be called after all test has been executed
type Description
name::String
fn::Function
depth::Int
children
end
type Test
name::String
desc::Description
fn::Function
iit::Bool
end
type Error
test::Test
err
trace
end
type DescriptionError
desc::Description
err
trace
end