Skip to content

Commit

Permalink
Hide success messages when running in sauce
Browse files Browse the repository at this point in the history
This should help debug the firefox issues that only occur when executing against sauce.
  • Loading branch information
kpdecker committed Dec 23, 2013
1 parent 5b8b54b commit 015eba6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ module.exports = function(grunt) {
all: {
options: {
build: process.env.TRAVIS_JOB_ID,
urls: ['http://localhost:9999/spec/'],
urls: ['http://localhost:9999/spec/?headless=true'],
detailedError: true,
concurrency: 2,
browsers: [
Expand Down
14 changes: 14 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="/node_modules/mocha/mocha.css" />
<style>
.headless .suite > h1,
.headless .test.pass {
display: none;
}
</style>

<script>
// Show only errors in "headless", non-interactive mode.
if (/headless=true/.test(location.href)) {
document.documentElement.className = 'headless';
}
</script>
<script src="/node_modules/mocha/mocha.js"></script>
<script>
mocha.setup('bdd');
Expand Down

0 comments on commit 015eba6

Please sign in to comment.