Specs without expectations should be alerted to the user
- Add console.error to the HtmlReporter when there is a spec without any expectation - Change the spec's link text and color to include a warning - Create a status for specs to label them as "empty" - console is not accessible to IE unless you have developer tools open, so protect against that by mocking console. [#59424794]
This commit is contained in:
parent
71dbffeaef
commit
1922514f2d
@@ -12,7 +12,7 @@ $page-background-color: #eee;
|
||||
$passing-color: #007069;
|
||||
$failing-color: #ca3a11;
|
||||
$pending-color: #ba9d37;
|
||||
|
||||
$empty-color: #eff543;
|
||||
$neutral-color: #bababa;
|
||||
|
||||
$font-size: 11px;
|
||||
@@ -152,7 +152,7 @@ body {
|
||||
color: #eee;
|
||||
|
||||
&.failed {
|
||||
background-color: $failing-color
|
||||
background-color: $failing-color;
|
||||
}
|
||||
|
||||
&.passed {
|
||||
@@ -260,6 +260,10 @@ body {
|
||||
color: $failing-color;
|
||||
}
|
||||
|
||||
&.empty a {
|
||||
color: $pending-color;
|
||||
}
|
||||
|
||||
&.pending a {
|
||||
color: $pending-color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user