Total : 19 Pass : 19 Fail : 0
AJ_Tools_UT Tests
Total : 7 Pass : 7 Fail : 0
AJ_Tools_UT_assert
Total : 5 Pass : 5 Fail : 0
#1 ok - Given an empty tested object: should raise and stack 4 errors
Expected :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":49,"errorFormula":"ASSERT(False; \"Expected result is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Given description is missing; Calling method: Unknown"},{"code":-10518,"comp":"4DRT","text":"Assert failed: What should do the test?; Calling method: Unknown"},{"code":-10518,"comp":"4DRT","text":"Assert failed: Actual result is missing; Calling method: Unknown"},{"code":-10518,"comp":"4DRT","text":"Assert failed: Expected result is missing; Calling method: Unknown"}]}

Actual :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":49,"errorFormula":"ASSERT(False; \"Expected result is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Given description is missing; Calling method: Unknown"},{"code":-10518,"comp":"4DRT","text":"Assert failed: What should do the test?; Calling method: Unknown"},{"code":-10518,"comp":"4DRT","text":"Assert failed: Actual result is missing; Calling method: Unknown"},{"code":-10518,"comp":"4DRT","text":"Assert failed: Expected result is missing; Calling method: Unknown"}]}
#2 ok - Given an tested object with missing given property: should raise 1 error
Expected :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":37,"errorFormula":"ASSERT(False; \"Given description is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Given description is missing; Calling method: Unknown"}]}

Actual :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":37,"errorFormula":"ASSERT(False; \"Given description is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Given description is missing; Calling method: Unknown"}]}
#3 ok - Given an tested object with missing should property: should raise 1 error
Expected :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":41,"errorFormula":"ASSERT(False; \"What should do the test?; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: What should do the test?; Calling method: Unknown"}]}

Actual :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":41,"errorFormula":"ASSERT(False; \"What should do the test?; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: What should do the test?; Calling method: Unknown"}]}
#4 ok - Given an tested object with missing expected property: should raise 1 error
Expected :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":49,"errorFormula":"ASSERT(False; \"Expected result is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Expected result is missing; Calling method: Unknown"}]}

Actual :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":49,"errorFormula":"ASSERT(False; \"Expected result is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Expected result is missing; Calling method: Unknown"}]}
#5 ok - Given an tested object with missing actual property: should raise 1 error
Expected :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":45,"errorFormula":"ASSERT(False; \"Actual result is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Actual result is missing; Calling method: Unknown"}]}

Actual :
{"errorCode":-10518,"errorMethod":"AJ_Tools_UT_assert","errorLine":45,"errorFormula":"ASSERT(False; \"Actual result is missing; Calling method: \"+$method)","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: Actual result is missing; Calling method: Unknown"}]}
AJ_Tools_UT_getResultText
Total : 2 Pass : 2 Fail : 0
#1 ok - Given a passed test object: should return the correct result text
Expected :
#1 ok - Given a passed test object: should return the correct result text

Actual :
#1 ok - Given a passed test object: should return the correct result text
#test2 ok - Given a failed test object: should return the correct result text
Expected :
#test2 not ok - Given a failed test object: should return the correct result text

Actual :
#test2 not ok - Given a failed test object: should return the correct result text
Math
Total : 4 Pass : 4 Fail : 0
Sum()
Total : 4 Pass : 4 Fail : 0
#1 ok - Given no parameters: should return 0
Expected :
0

Actual :
0
#2 ok - Given 1 parameter (here 5): should return 10 (addition itself)
Expected :
10

Actual :
10
#3 ok - Given 3 and 3: should return 6
Expected :
6

Actual :
6
#4 ok - Given 1 and 3: should return 4
Expected :
4

Actual :
4
No Category
Total : 8 Pass : 8 Fail : 0
New AJ_Tools_UT_describe
Total : 4 Pass : 4 Fail : 0
#1 ok - Given no arguments: should raise an error
Expected :
{"errorCode":-10518,"errorMethod":"New AJ_Tools_UT_describe","errorLine":37,"errorFormula":"ASSERT($continue; \"You must describe your test!\")","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: You must describe your test!"}]}

Actual :
{"errorCode":-10518,"errorMethod":"New AJ_Tools_UT_describe","errorLine":37,"errorFormula":"ASSERT($continue; \"You must describe your test!\")","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: You must describe your test!"}]}
#2 ok - Given one argument: should raise an error
Expected :
{"errorCode":-10518,"errorMethod":"New AJ_Tools_UT_describe","errorLine":37,"errorFormula":"ASSERT($continue; \"You must describe your test!\")","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: You must describe your test!"}]}

Actual :
{"errorCode":-10518,"errorMethod":"New AJ_Tools_UT_describe","errorLine":37,"errorFormula":"ASSERT($continue; \"You must describe your test!\")","stack":[{"code":-10518,"comp":"4DRT","text":"Assert failed: You must describe your test!"}]}
#3 ok - Given two arguments: should return a new test object
Expected :
{"UUID":"BE8BA1C57DB74D04A583996C46CDBB79","describe":"description","method":"_New AJ_Tools_UT_describe","counter":1,"assert":"[object Formula]"}

Actual :
{"UUID":"BE8BA1C57DB74D04A583996C46CDBB79","describe":"description","method":"_New AJ_Tools_UT_describe","counter":1,"assert":"[object Formula]"}
#4 ok - Given three arguments: should return a new test object with category defined
Expected :
{"UUID":"5A913674143742018401B3BDFD5AADE2","describe":"description","method":"_New AJ_Tools_UT_describe","category":"Category","counter":1,"assert":"[object Formula]"}

Actual :
{"UUID":"5A913674143742018401B3BDFD5AADE2","describe":"description","method":"_New AJ_Tools_UT_describe","category":"Category","counter":1,"assert":"[object Formula]"}
Test method executed on server
Total : 2 Pass : 2 Fail : 0
#1 ok - Given 3+3: should return 6
Expected :
6

Actual :
6
#2 ok - Given a random number: should be between 0 and 32,767 (inclusive)
Expected :
True

Actual :
True
Test object comparaison if properties are not in the same order
Total : 2 Pass : 2 Fail : 0
#1 ok - Given an object with some properties: should be like another object with same properties in a different order (Deep equal)
Expected :
{"B":"b","A":"A","c":{"c":"c"},"col":[1,2,3]}

Actual :
{"A":"A","col":[1,2,3],"c":{"c":"c"},"B":"b"}
#2 ok - Given an object with some properties: should be like another object with same properties in a different order (Deep equal)
Expected :
{"B":"b","A":"A","c":{"c":"c"}}

Actual :
{"A":"A","c":{"c":"c"},"B":"b"}