mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
use a better reporter for saucelabs
This commit is contained in:
parent
912d39c2f7
commit
edfb2b7fa2
3 changed files with 11 additions and 4 deletions
|
@ -30,6 +30,7 @@
|
|||
"lodash": "~2.4.1",
|
||||
"mkdirp": "^0.5.0",
|
||||
"mocha": "~1.20.1",
|
||||
"mocha-screencast-reporter": "~0.1.4",
|
||||
"path-browserify": "0.0.0",
|
||||
"progress": "^1.1.8",
|
||||
"request": "^2.40.0",
|
||||
|
|
|
@ -2,7 +2,7 @@ module.exports = {
|
|||
unit: {
|
||||
options: {
|
||||
urls: [
|
||||
'http://localhost:8000/test/unit/'
|
||||
'http://localhost:8000/test/unit/?saucelabs=true'
|
||||
],
|
||||
testname: 'Kibana Browser Tests',
|
||||
build: process.env.TRAVIS_BUILD_ID || 'test build',
|
||||
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
browserName: 'internet explorer',
|
||||
platform: 'Windows 7'
|
||||
platform: 'Windows 8'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -2,17 +2,23 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Kibana4 Tests</title>
|
||||
|
||||
<link rel="stylesheet" href="/node_modules/mocha/mocha.css" />
|
||||
<link rel="stylesheet" href="/node_modules/mocha-screencast-reporter/screencast-reporter.css" />
|
||||
|
||||
<script src="/node_modules/expect.js/index.js"></script>
|
||||
<script src="/node_modules/mocha/mocha.js"></script>
|
||||
<script src="/node_modules/mocha-screencast-reporter/screencast-reporter.js"></script>
|
||||
<script src="/src/kibana/bower_components/requirejs/require.js"></script>
|
||||
<script src="/src/kibana/require.config.js"></script>
|
||||
|
||||
<script>(function () {
|
||||
var COVERAGE = !!(/coverage/i.test(window.location.search));
|
||||
var SAUCELABS = !!(/saucelabs/i.test(window.location.search));
|
||||
|
||||
mocha.setup({
|
||||
ui: 'bdd',
|
||||
reporter: 'html'
|
||||
reporter: SAUCELABS ? ScreencastReporter : 'html'
|
||||
});
|
||||
|
||||
require.config({
|
||||
|
@ -136,7 +142,7 @@
|
|||
|
||||
(suite.tests || [])
|
||||
.filter(function (test) {
|
||||
return test.state === 'failed';
|
||||
return test.state !== 'passed' && test.state !== 'pending';
|
||||
})
|
||||
.forEach(function (test) {
|
||||
fails.push({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue