Skip to content
Permalink
Browse files

fix(release-check): avoid duplicated e2e processes

  • Loading branch information...
3cp committed May 28, 2019
1 parent 6f48ff8 commit 615096ad7370e895b23df0493e34508a46c0f8c7
@@ -23,7 +23,7 @@ class AuCypressRunsTests extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.cypressCommand) {
this.cypressCommand = new ExecuteCommand('au', ['cypress', '--run'], (msg) => this.onCypressOutput(msg), (msg) => this.onCypressOutput(msg));
return this.cypressCommand.executeAsNodeScript();
}
@@ -57,7 +57,7 @@ class AuCypressRunsTestsDotNet extends Test {
onOutput(message) {
this.debug(message);

if (message.indexOf('Now listening on: http://localhost:') > -1) {
if (message.indexOf('Now listening on: http://localhost:') > -1 && !this.cypressCommand) {
this.cypressCommand = new ExecuteCommand('au', ['cypress', '--run'], (msg) => this.onCypressOutput(msg), (msg) => this.onCypressOutput(msg));
return this.cypressCommand.executeAsNodeScript();
}
@@ -19,7 +19,7 @@ class AuProtractorRunsTests extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.protractorCommand) {
this.protractorCommand = new ExecuteCommand('au', ['protractor'], (msg) => this.onProtractorOutput(msg));
this.protractorCommand.ignoreStdErr = true;
return this.protractorCommand.executeAsNodeScript();
@@ -50,7 +50,7 @@ class AuProtractorRunsTestsDotNet extends Test {
onOutput(message) {
this.debug(message);

if (message.indexOf('Now listening on: http://localhost:') > -1) {
if (message.indexOf('Now listening on: http://localhost:') > -1 && !this.protractorCommand) {
this.protractorCommand = new ExecuteCommand('au', ['protractor'], (msg) => this.onProtractorOutput(msg));
this.protractorCommand.ignoreStdErr = true;
return this.protractorCommand.executeAsNodeScript();

0 comments on commit 615096a

Please sign in to comment.
You can’t perform that action at this time.