Support pending specs with:

- xit
- it with a null function body ( it("should be pending");
- calling pending() inside a spec
- having a spec without any expectations

Pending and Filtered specs now call Reporter interface specStarted so that reporting acts as expected.
Pending and Filtered spec names are present and styled in the HTML reporter

Using xit used to disable a spec. Disabling is now just when a spec is filtered out at run time (usually w/ the reporter).

Suites are still disabled with xdescribe and means its specs are never executed.
This commit is contained in:
Dan Hansen and Davis W. Frank
2013-02-28 12:04:29 -08:00
parent d6da13a8dd
commit b7af6abca5
20 changed files with 346 additions and 126 deletions

View File

@@ -14,6 +14,7 @@ $passing-color: #5e7d00;
$light-failing-color: #cf867e;
$failing-color: #b03911;
$pending-color: #ba9d37;
$neutral-color: #bababa;
@@ -120,21 +121,20 @@ body {
}
}
&.disabled {
font-size: 14px;
&.disabled {
font-size: 14px;
&:before {
color: $neutral-color;
content: "\02022";
&:before {
color: $neutral-color;
content: "\02022";
}
}
}
&.pending {
line-height: ($line-height / 2) + 4;
line-height: 17px;
&:before {
color: $faint-text-color;
content: "-";
color: $pending-color;
content: "*";
}
}
}
@@ -264,6 +264,10 @@ body {
&.failed a {
color: $failing-color;
}
&.pending a {
color: $pending-color;
}
}
}