Run more crashReporter specs on CI
This commit is contained in:
parent
2c8ab72269
commit
77fa7ce977
2 changed files with 6 additions and 9 deletions
|
@ -9,6 +9,8 @@ const {closeWindow} = require('./window-helpers')
|
||||||
const {remote} = require('electron')
|
const {remote} = require('electron')
|
||||||
const {app, BrowserWindow, crashReporter} = remote.require('electron')
|
const {app, BrowserWindow, crashReporter} = remote.require('electron')
|
||||||
|
|
||||||
|
const isCI = remote.getGlobal('isCi')
|
||||||
|
|
||||||
describe('crashReporter module', function () {
|
describe('crashReporter module', function () {
|
||||||
var fixtures = path.resolve(__dirname, 'fixtures')
|
var fixtures = path.resolve(__dirname, 'fixtures')
|
||||||
var w = null
|
var w = null
|
||||||
|
@ -33,12 +35,9 @@ describe('crashReporter module', function () {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var isCI = remote.getGlobal('isCi')
|
|
||||||
if (isCI) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
it('should send minidump when renderer crashes', function (done) {
|
it('should send minidump when renderer crashes', function (done) {
|
||||||
|
if (isCi) return
|
||||||
|
|
||||||
this.timeout(120000)
|
this.timeout(120000)
|
||||||
|
|
||||||
var called = false
|
var called = false
|
||||||
|
|
|
@ -61,11 +61,9 @@ describe('chromium feature', function () {
|
||||||
w.loadURL(url)
|
w.loadURL(url)
|
||||||
})
|
})
|
||||||
|
|
||||||
if (isCI && process.platform === 'win32') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
it('is set correctly when window is inactive', function (done) {
|
it('is set correctly when window is inactive', function (done) {
|
||||||
|
if (isCI && process.platform === 'win32') return done()
|
||||||
|
|
||||||
w = new BrowserWindow({
|
w = new BrowserWindow({
|
||||||
show: false
|
show: false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue