@web/test-runner-core
Advanced tools
Comparing version 0.5.7 to 0.6.0
# @web/test-runner-core | ||
## 0.6.0 | ||
### Minor Changes | ||
- c4cb321: Use web dev server in test runner. This contains multiple breaking changes: | ||
- Browsers that don't support es modules are not supported for now. We will add this back later. | ||
- Most es-dev-server config options are no longer available. The only options that are kept are `plugins`, `middleware`, `nodeResolve` and `preserveSymlinks`. | ||
- Test runner config changes: | ||
- Dev server options are not available on the root level of the configuration file. | ||
- `nodeResolve` is no longer enabled by default. You can enable it with the `--node-resolve` flag or `nodeResolve` option. | ||
- `middlewares` option is now called `middleware`. | ||
- `testFrameworkImport` is now called `testFramework`. | ||
- `address` is now split into `protocol` and `hostname`. | ||
## 0.5.7 | ||
@@ -4,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { TestRunnerConfig } from '../runner/TestRunnerConfig'; | ||
import { TestRunnerCoreConfig } from '../runner/TestRunnerCoreConfig'; | ||
import { TestSession } from '../test-session/TestSession'; | ||
@@ -9,3 +9,3 @@ export interface BrowserLauncher { | ||
*/ | ||
start(config: TestRunnerConfig): Promise<string[]>; | ||
start(config: TestRunnerCoreConfig): Promise<string[]>; | ||
/** | ||
@@ -12,0 +12,0 @@ * One time teardown for the browser launcher. Called when the test runner |
import { CoverageSummaryData, CoverageMap } from 'istanbul-lib-coverage'; | ||
import { TestSession } from '../test-session/TestSession'; | ||
import { CoverageThresholdConfig } from '../runner/TestRunnerConfig'; | ||
import { CoverageThresholdConfig } from '../runner/TestRunnerCoreConfig'; | ||
export declare const coverageTypes: (keyof CoverageSummaryData)[]; | ||
@@ -5,0 +5,0 @@ export interface TestCoverage { |
@@ -5,3 +5,3 @@ import * as constants from './browser-launcher/constants'; | ||
export { TestRunner } from './runner/TestRunner'; | ||
export { TestRunnerConfig, CoverageConfig, CoverageThresholdConfig, } from './runner/TestRunnerConfig'; | ||
export { TestRunnerCoreConfig, CoverageConfig, CoverageThresholdConfig, } from './runner/TestRunnerCoreConfig'; | ||
export { TestCoverage } from './coverage/getTestCoverage'; | ||
@@ -8,0 +8,0 @@ export { Server } from './server/Server'; |
@@ -1,5 +0,5 @@ | ||
import { TestRunnerConfig } from './TestRunnerConfig'; | ||
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig'; | ||
import { TestSession } from '../test-session/TestSession'; | ||
export declare function toBrowserPath(filePath: string): string; | ||
export declare function createSessionUrl(config: TestRunnerConfig, session: TestSession, debug: boolean): string; | ||
export declare function createSessionUrl(config: TestRunnerCoreConfig, session: TestSession, debug: boolean): string; | ||
//# sourceMappingURL=createSessionUrl.d.ts.map |
@@ -25,5 +25,5 @@ "use strict"; | ||
const params = `?${constants_1.PARAM_SESSION_ID}=${session.id}${debug ? `&${constants_1.PARAM_DEBUG}=true` : ''}`; | ||
return `${config.address}:${config.port}${browserPath}${params}`; | ||
return `${config.protocol}//${config.hostname}:${config.port}${browserPath}${params}`; | ||
} | ||
exports.createSessionUrl = createSessionUrl; | ||
//# sourceMappingURL=createSessionUrl.js.map |
@@ -1,2 +0,2 @@ | ||
import { TestRunnerConfig } from './TestRunnerConfig'; | ||
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig'; | ||
import { TestSession } from '../test-session/TestSession'; | ||
@@ -18,3 +18,3 @@ import { TestCoverage } from '../coverage/getTestCoverage'; | ||
export declare class TestRunner extends EventEmitter<EventMap> { | ||
config: TestRunnerConfig; | ||
config: TestRunnerCoreConfig; | ||
sessions: TestSessionManager; | ||
@@ -31,3 +31,3 @@ browserNames: string[]; | ||
private scheduler; | ||
constructor(config: TestRunnerConfig, testFiles: string[]); | ||
constructor(config: TestRunnerCoreConfig, testFiles: string[]); | ||
start(): Promise<void>; | ||
@@ -34,0 +34,0 @@ runTests(sessions: Iterable<TestSession>): Promise<void>; |
@@ -1,2 +0,2 @@ | ||
import { TestRunnerConfig } from './TestRunnerConfig'; | ||
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig'; | ||
import { TestSessionManager } from '../test-session/TestSessionManager'; | ||
@@ -8,3 +8,3 @@ import { TestSession } from '../test-session/TestSession'; | ||
private timeoutIdsPerSession; | ||
constructor(config: TestRunnerConfig, sessions: TestSessionManager); | ||
constructor(config: TestRunnerCoreConfig, sessions: TestSessionManager); | ||
stop(): void; | ||
@@ -11,0 +11,0 @@ private addTimeoutId; |
@@ -1,6 +0,6 @@ | ||
import { TestRunnerConfig } from '../runner/TestRunnerConfig.js'; | ||
import { TestRunnerCoreConfig } from '../runner/TestRunnerCoreConfig.js'; | ||
import { TestSessionManager } from '../test-session/TestSessionManager.js'; | ||
import { TestRunner } from '../runner/TestRunner.js'; | ||
export interface ServerStartArgs { | ||
config: TestRunnerConfig; | ||
config: TestRunnerCoreConfig; | ||
sessions: TestSessionManager; | ||
@@ -7,0 +7,0 @@ runner: TestRunner; |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.5.7", | ||
"version": "0.6.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -14,4 +14,4 @@ # Web Test Runner Core | ||
- [@web/test-runner-playwright](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-playwright) | ||
- `@web/test-runner-selenium` (coming soon) | ||
- `@web/test-runner-browserstack` (coming soon) | ||
- [@web/test-runner-selenium](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-selenium) | ||
- [@web/test-runner-browserstack](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-browserstack) | ||
@@ -18,0 +18,0 @@ [Read more here](./docs/browser-launcher.md) to learn about creating your own browser launcher. |
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
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
62257
749