Socket
Socket
Sign inDemoInstall

@web/test-runner-core

Package Overview
Dependencies
Maintainers
6
Versions
144
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 0.2.6 to 0.3.0

6

CHANGELOG.md
# @web/test-runner-core
## 0.3.0
### Minor Changes
- 0c83d7e: create separate coverage and coverageConfig options
## 0.2.6

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

28

dist/browser-launcher/BrowserLauncher.d.ts
import { TestRunnerConfig } from '../runner/TestRunnerConfig';
import { TestSession } from '../test-session/TestSession';
export interface BrowserLauncher {
/**
* One time startup for the browser launcher. Called when the test runner
* starts.
* @param config The test runner config.
*/
start(config: TestRunnerConfig): Promise<string[]>;
/**
* One time teardown for the browser launcher. Called when the test runner
* stops.
*/
stop(): Promise<void>;
startDebugSession(session: TestSession): Promise<void>;
/**
* Start a single test sessions in a single browser page or tab. This should
* open the browser with the test session id in the URL.
* @param session
*/
startSession(session: TestSession): Promise<void>;
/**
* Stops a single test session. There is no mandatory action to be taken here.
* Implementations can use this for example to recycle inactive tabs instead of
* creating new ones.
* @param session
*/
stopSession(session: TestSession): void;
/**
* Starts a debug session. This should start a session like startSession, but
* without headless and with a debug parameter in the URL. If the implementation
* does not support debugging, it can throw an error.
* @param session
*/
startDebugSession(session: TestSession): Promise<void>;
}
//# sourceMappingURL=BrowserLauncher.d.ts.map

3

dist/runner/TestRunner.js

@@ -138,4 +138,3 @@ "use strict";

if (this.config.coverage) {
const coverageThreshold = typeof this.config.coverage === 'object' ? this.config.coverage.threshold : undefined;
testCoverage = getTestCoverage_1.getTestCoverage(this.sessions.all(), coverageThreshold);
testCoverage = getTestCoverage_1.getTestCoverage(this.sessions.all(), this.config.coverageConfig.threshold);
passedCoverage = testCoverage.passed;

@@ -142,0 +141,0 @@ }

@@ -25,3 +25,4 @@ import { BrowserLauncher } from '../browser-launcher/BrowserLauncher.js';

watch?: boolean;
coverage?: boolean | CoverageConfig;
coverage?: boolean;
coverageConfig?: CoverageConfig;
concurrency?: number;

@@ -28,0 +29,0 @@ browserStartTimeout?: number;

{
"name": "@web/test-runner-core",
"version": "0.2.6",
"version": "0.3.0",
"publishConfig": {

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

# Web Test Runner Core
Core package for Web Test Runner. Managing running the tests. Has a modular architecture, delegating most of the work to separate implementations.
Core package for Web Test Runner. Manages running the tests. Has a modular architecture, delegating most of the work to the separate parts and implementations.
See [@web/test-runner](https://github.com/modernweb-dev/web/tree/master/packages/test-runner) for a default implementation.
See [@web/test-runner](https://github.com/modernweb-dev/web/tree/master/packages/test-runner) for a default implementation and CLI for the test runner.

@@ -17,2 +17,12 @@ ## Browser launchers

[Read more here](./docs/browser-launcher.md) to learn about creating your own browser launcher.
## Test frameworks
Test frameworks run the actual tests in the browser. Web test runner relies on existing test frameworks. Implementations
- [@web/test-runner-mocha](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-mocha)
[Read more here](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-framework) to learn more about implementing your own test framework, or to use no framework at all.
## Servers

@@ -24,8 +34,2 @@

## Test framework
Test frameworks run the actual tests in the browser. Web test runner relies on existing test frameworks. Implementations
- [@web/test-runner-mocha](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-mocha)
Further documentation is still a work in progress.
[Read more here](./docs/dev-server.md) to learn about creating your own test runner server.

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc