wdio-docker-service
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -26,2 +26,3 @@ "use strict"; | ||
this.dockerLogs = config.dockerLogs; | ||
this.watchMode = !!config.watch; | ||
Logger.setLevel(config.logLevel || 'info'); | ||
@@ -69,6 +70,13 @@ const { | ||
onComplete() { | ||
if (this.docker) { | ||
// do not stop docker if in watch mode | ||
if (!this.watchMode && this.docker) { | ||
return this.docker.stop(); | ||
} | ||
} | ||
afterSession() { | ||
if (this.docker) { | ||
this.docker.stop(); | ||
} | ||
} | ||
/** | ||
@@ -75,0 +83,0 @@ * @param logFile |
{ | ||
"name": "wdio-docker-service", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "WebdriverIO service to start and stop docker container (for Selenium and more)", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
69403
753