Example #1
0
File: app.js Project: m0g/ansel
 stop(done) {
   if (this.app && this.app.isRunning()) {
     this.app.stop()
       .then(() => {
         return knex.destroy();
       })
       .then(() => {
         rimraf(testsPath, done);
       });
   }
 }
Example #2
0
test.after.always('cleanup', async t => {
  console.log(JSON.stringify(await app.client.getMainProcessLogs(), null, 2))
  await app.stop()
})
Example #3
0
			.then(() => {
				return app.stop().then(() => assert.isFalse(app.isRunning()))
			})
Example #4
0
	afterEach(() => {
		if (app && app.isRunning()) {
			return app.stop();
		}
	});
Example #5
0
}).then(function () {
  // Stop the application
  return app.stop()
}).catch(function (error) {
	afterEach(function (done) {
		app.stop().then(function() { done(); });
	});
}).catch(function (error) {
  // エラーをキャッチしたら、テストがエラーした旨のメッセージを表示する
  console.error("Test failed", error.message);
  return app.stop();
});
}).then(function () {
  // 終わったらアプリケーションを停止する
  console.info("Test Success");
  return app.stop();
}).catch(function (error) {
Example #9
0
test.after.always('cleanup', async t => {
  console.log(await app.client.getMainProcessLogs())
  await app.stop()
})
 after(() => (
   Promise.all([
     app1.stop(),
     app2.browserWindow.close(),
   ])
 ));
Example #11
0
 after(function () {
   if (App && App.isRunning()) {
     return App.stop()
   }
 })