dwf/rva: started suite testing.

This commit is contained in:
pivotal
2008-12-01 17:57:21 -08:00
parent 7a95f3344c
commit be33f1e6d4
3 changed files with 75 additions and 18 deletions

34
test/bootstrap.js vendored
View File

@@ -282,23 +282,37 @@ var waitForDone = function(spec, mockSuite) {
}, 150);
}
var testSuites = function () {
// suite has a description
var suite = describe('one suite description', function() {});
reporter.test((suite.description == 'one suite description'),
'Suite did not get a description');
// suite can have a test
suite = describe('one suite description', function () {
it('should be a test');
});
reporter.test((suite.tests[0].queue.length === 1),
'Suite did not get a test pushed');
}
var runTests = function () {
$('spinner').show();
testMatchersComparisons();
testMatchersReporting();
testSpecs();
testAsyncSpecs();
testAsyncSpecsWithMockSuite();
// testMatchersComparisons();
// testMatchersReporting();
// testSpecs();
// testAsyncSpecs();
// testAsyncSpecsWithMockSuite();
testSuites();
setTimeout(function() {
$('spinner').hide();
reporter.summary();
}, 10000);
}, 100);
}
//it('should be an async test') {
// run(function() {setup}).and.wait(2000).then.expects_that(true).should_equal(true).and.expects_that
//}