【发布时间】:2013-10-07 16:11:02
【问题描述】:
我想知道如何获取正在运行的测试的名称、测试用例的名称和测试结果(测试是通过还是失败)。
以下是代码示例:
MyTestCase= TestCase("MyTestCase");
MyTestCase.prototype.setUp = function()
{
// print name of the test => testA
// print name of the testcase => MyTestCase
}
MyTestCase.prototype.testA= function()
{
//do something
}
MyTestCase.prototype.tearDown = function()
{
//result of the test => passed or failed??
}
【问题讨论】:
标签: javascript unit-testing js-test-driver