@web/test-runner-core
Advanced tools
Comparing version 0.6.12 to 0.6.13
# @web/test-runner-core | ||
## 0.6.13 | ||
### Patch Changes | ||
- e97d492: allow adding custom reporters | ||
## 0.6.12 | ||
@@ -4,0 +10,0 @@ |
import * as constants from './browser-launcher/constants'; | ||
export { constants }; | ||
export { BrowserLauncher, Viewport } from './browser-launcher/BrowserLauncher'; | ||
export { IndentedReportEntry, ReportEntry, Report, Reporter, ReportTestResultsArgs, ReportTestProgressArgs, ReporterArgs, TestRunArgs, TestRunStartedArgs, TestRunFinishedArgs, } from './reporter/Reporter'; | ||
export { TestRunner } from './runner/TestRunner'; | ||
@@ -5,0 +6,0 @@ export { TestFramework } from './test-framework/TestFramework'; |
@@ -23,3 +23,2 @@ import { TestRunnerCoreConfig } from './TestRunnerCoreConfig'; | ||
testFiles: string[]; | ||
favoriteBrowser: string; | ||
startTime: number; | ||
@@ -26,0 +25,0 @@ testRun: number; |
@@ -17,3 +17,2 @@ "use strict"; | ||
this.browserNames = []; | ||
this.favoriteBrowser = ''; | ||
this.startTime = -1; | ||
@@ -37,3 +36,2 @@ this.testRun = -1; | ||
async start() { | ||
var _a; | ||
try { | ||
@@ -52,6 +50,2 @@ if (this.started) { | ||
} | ||
this.favoriteBrowser = (_a = this.browserNames.find(browserName => { | ||
const n = browserName.toLowerCase(); | ||
return n.includes('chrome') || n.includes('chromium') || n.includes('firefox'); | ||
})) !== null && _a !== void 0 ? _a : this.browserNames[0]; | ||
const createdSessions = createTestSessions_1.createTestSessions(browserNameForLauncher, this.testFiles); | ||
@@ -58,0 +52,0 @@ for (const session of createdSessions) { |
import { BrowserLauncher } from '../browser-launcher/BrowserLauncher.js'; | ||
import { TestFramework } from '../test-framework/TestFramework.js'; | ||
import { Reporter } from '../reporter/Reporter.js'; | ||
import { Server } from '../server/Server.js'; | ||
@@ -21,2 +22,3 @@ export interface CoverageThresholdConfig { | ||
browsers: BrowserLauncher | BrowserLauncher[]; | ||
reporters: Reporter[]; | ||
server: Server; | ||
@@ -23,0 +25,0 @@ protocol: string; |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.6.12", | ||
"version": "0.6.13", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74300
67
897