dwf/rva: results are now carrying descriptions as needed (Runner, Suite, Spec)
This commit is contained in:
@@ -158,10 +158,6 @@ var it = function (description, func) {
|
||||
currentTimeout: 0,
|
||||
finished: false,
|
||||
|
||||
// suite: {
|
||||
// next: function() {
|
||||
// }},
|
||||
|
||||
results: nestedResults(),
|
||||
|
||||
expects_that: function (actual) {
|
||||
@@ -213,6 +209,7 @@ var it = function (description, func) {
|
||||
func();
|
||||
}
|
||||
|
||||
that.results.description = description;
|
||||
return that;
|
||||
}
|
||||
|
||||
@@ -236,7 +233,9 @@ var describe = function (description, spec_definitions) {
|
||||
currentRunner.suites.push(that);
|
||||
|
||||
spec_definitions();
|
||||
|
||||
|
||||
that.results.description = description;
|
||||
|
||||
return that;
|
||||
}
|
||||
|
||||
@@ -244,6 +243,7 @@ var Jasmine = function () {
|
||||
var that = actionCollection();
|
||||
|
||||
that.suites = that.actions;
|
||||
that.results.description = 'All Jasmine Suites';
|
||||
|
||||
currentRunner = that;
|
||||
return that;
|
||||
@@ -256,7 +256,7 @@ var currentSpec;
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
* - add spec or description to results
|
||||
//* - add spec or description to results
|
||||
//* - spec.execute needs to wait until the spec is done
|
||||
//* - an async test will be killed after X ms if not done and then listed as failed with an "async fail" message of some sort
|
||||
//* - Suite to run tests in order, constructed with a function called describe
|
||||
@@ -267,7 +267,7 @@ var currentSpec;
|
||||
//* - Suite rolls up spec results
|
||||
//* - Suite supports asynch
|
||||
//* - Runner that runs suites in order
|
||||
// * - Runner supports async
|
||||
//* - Runner supports async
|
||||
* - HTML reporter
|
||||
* - Shows pass/fail progress (just like bootstrap reporter)
|
||||
* - Lists a Summary: total # specs, # of passed, # of failed
|
||||
|
||||
Reference in New Issue
Block a user