You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@web/test-runner-core

Package Overview
Dependencies
Maintainers
6
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-core - npm Package Compare versions

Comparing version

to
0.5.5

6

CHANGELOG.md
# @web/test-runner-core
## 0.5.5
### Patch Changes
- 56ed519: open browser windows sequentially in selenium
## 0.5.4

@@ -4,0 +10,0 @@

3

dist/browser-launcher/BrowserLauncher.d.ts

@@ -18,2 +18,5 @@ import { TestRunnerConfig } from '../runner/TestRunnerConfig';

* open the browser for the given URL.
*
* This function can be called multiple times in parallel, implementations which cannot
* handle opening browser pages in parallel should set up a queuing system.
* @param session

@@ -20,0 +23,0 @@ */

10

dist/runner/TestRunner.js

@@ -102,7 +102,9 @@ "use strict";

});
const stopActions = [];
for (const browser of this.browserLaunchers) {
browser.stop().catch(error => {
stopActions.push(browser.stop().catch(error => {
console.error(error);
});
}));
}
await Promise.all(stopActions);
}

@@ -135,5 +137,3 @@ startDebugFocusedTestFile() {

session.browserLauncher.stopSession(session);
this.scheduler.runScheduled(this.testRun).catch(error => {
this.quit(error);
});
this.scheduler.runScheduled(this.testRun);
const finishedAll = Array.from(this.sessions.all()).every(s => s.status === TestSessionStatus_1.SESSION_STATUS.FINISHED);

@@ -140,0 +140,0 @@ if (finishedAll) {

@@ -12,4 +12,4 @@ import { TestRunnerConfig } from './TestRunnerConfig';

private clearTimeouts;
schedule(testRun: number, sessionsToSchedule: Iterable<TestSession>): Promise<void>;
runScheduled(testRun: number): Promise<void>;
schedule(testRun: number, sessionsToSchedule: Iterable<TestSession>): void;
runScheduled(testRun: number): void;
private runSession;

@@ -16,0 +16,0 @@ private setSessionFailed;

@@ -36,9 +36,9 @@ "use strict";

}
async schedule(testRun, sessionsToSchedule) {
schedule(testRun, sessionsToSchedule) {
for (const session of sessionsToSchedule) {
this.sessions.updateStatus(session, TestSessionStatus_1.SESSION_STATUS.SCHEDULED);
}
return this.runScheduled(testRun);
this.runScheduled(testRun);
}
async runScheduled(testRun) {
runScheduled(testRun) {
const scheduledIt = this.sessions.forStatus(TestSessionStatus_1.SESSION_STATUS.SCHEDULED);

@@ -52,3 +52,3 @@ const runningCount = Array.from(this.sessions.forStatus(TestSessionStatus_1.SESSION_STATUS.INITIALIZING, TestSessionStatus_1.SESSION_STATUS.STARTED)).length;

}
await this.runSession(testRun, value);
this.runSession(testRun, value);
}

@@ -69,3 +69,2 @@ }

try {
// TODO: Select associated browser
await session.browserLauncher.startSession(session, createSessionUrl_1.createSessionUrl(this.config, session, false));

@@ -72,0 +71,0 @@ // when the browser started, wait for session to ping back on time

{
"name": "@web/test-runner-core",
"version": "0.5.4",
"version": "0.5.5",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet