@hyperfixi/testing-framework 2.7.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assertions.d.mts +26 -1
- package/dist/assertions.d.ts +26 -1
- package/dist/index.d.mts +5 -112
- package/dist/index.d.ts +5 -112
- package/dist/runner.d.mts +112 -0
- package/dist/runner.d.ts +112 -0
- package/dist/runner.js +1102 -0
- package/dist/runner.js.map +1 -0
- package/dist/runner.mjs +1097 -0
- package/dist/runner.mjs.map +1 -0
- package/dist/{assertions-CsGP61iW.d.mts → types-D-rCVkf3.d.mts} +1 -24
- package/dist/{assertions-CsGP61iW.d.ts → types-D-rCVkf3.d.ts} +1 -24
- package/package.json +11 -26
- package/src/multilingual/canonical-validity.test.ts +69 -0
- package/src/multilingual/canonical-validity.ts +132 -0
- package/src/multilingual/cli.ts +185 -1
- package/src/multilingual/fidelity.test.ts +192 -0
- package/src/multilingual/fidelity.ts +153 -0
- package/src/multilingual/foreign-canonical-validity.test.ts +0 -0
- package/src/multilingual/foreign-canonical-validity.ts +158 -0
- package/src/multilingual/orchestrator.ts +47 -1
- package/src/multilingual/reporters/console-reporter.ts +51 -0
- package/src/multilingual/reporters/regression-reporter.ts +23 -0
- package/src/multilingual/tools/diagnose-coverage.ts +118 -0
- package/src/multilingual/tools/triage-r1.ts +149 -0
- package/src/multilingual/types.ts +74 -0
- package/src/multilingual/validators/parse-validator.ts +9 -1
- package/src/runner.test.ts +7 -2
- package/src/vocab/batch3-roundtrip.test.ts +184 -0
- package/src/vocab/checks.test.ts +362 -0
- package/src/vocab/checks.ts +311 -0
- package/src/vocab/cli.ts +196 -0
- package/src/vocab/dump.ts +80 -0
- package/src/vocab/model.ts +110 -0
- package/src/vocab/report.ts +120 -0
- package/src/vocab/types.ts +100 -0
package/dist/assertions.d.mts
CHANGED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { k as AssertAPI, n as ExpectAPI } from './types-D-rCVkf3.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Assertion Library
|
|
5
|
+
* Comprehensive assertion and expectation framework for HyperFixi testing
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Assertion error class
|
|
10
|
+
*/
|
|
11
|
+
declare class AssertionError extends Error {
|
|
12
|
+
expected?: any | undefined;
|
|
13
|
+
actual?: any | undefined;
|
|
14
|
+
operator?: string | undefined;
|
|
15
|
+
constructor(message: string, expected?: any | undefined, actual?: any | undefined, operator?: string | undefined);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create expect API
|
|
19
|
+
*/
|
|
20
|
+
declare function createExpectAPI(): ExpectAPI;
|
|
21
|
+
/**
|
|
22
|
+
* Create assert API
|
|
23
|
+
*/
|
|
24
|
+
declare function createAssertAPI(): AssertAPI;
|
|
25
|
+
|
|
26
|
+
export { AssertionError, createAssertAPI, createExpectAPI };
|
package/dist/assertions.d.ts
CHANGED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { k as AssertAPI, n as ExpectAPI } from './types-D-rCVkf3.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Assertion Library
|
|
5
|
+
* Comprehensive assertion and expectation framework for HyperFixi testing
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Assertion error class
|
|
10
|
+
*/
|
|
11
|
+
declare class AssertionError extends Error {
|
|
12
|
+
expected?: any | undefined;
|
|
13
|
+
actual?: any | undefined;
|
|
14
|
+
operator?: string | undefined;
|
|
15
|
+
constructor(message: string, expected?: any | undefined, actual?: any | undefined, operator?: string | undefined);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create expect API
|
|
19
|
+
*/
|
|
20
|
+
declare function createExpectAPI(): ExpectAPI;
|
|
21
|
+
/**
|
|
22
|
+
* Create assert API
|
|
23
|
+
*/
|
|
24
|
+
declare function createAssertAPI(): AssertAPI;
|
|
25
|
+
|
|
26
|
+
export { AssertionError, createAssertAPI, createExpectAPI };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,114 +1,7 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
export { A as AccessibilityCheckResult,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Test Runner
|
|
6
|
-
* Core test execution engine with multi-environment support
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Core test runner implementation
|
|
11
|
-
*/
|
|
12
|
-
declare class CoreTestRunner implements TestRunner {
|
|
13
|
-
private executionContext;
|
|
14
|
-
/**
|
|
15
|
-
* Run all test suites
|
|
16
|
-
*/
|
|
17
|
-
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Run a single test suite
|
|
20
|
-
*/
|
|
21
|
-
runSuite(suite: TestSuite, config: TestConfig): Promise<TestResult[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Run a single test
|
|
24
|
-
*/
|
|
25
|
-
runTest(test: TestCase, context: TestContext): Promise<TestResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Setup execution context
|
|
28
|
-
*/
|
|
29
|
-
private setupExecutionContext;
|
|
30
|
-
/**
|
|
31
|
-
* Setup JSDOM context
|
|
32
|
-
*/
|
|
33
|
-
private setupJSDOMContext;
|
|
34
|
-
/**
|
|
35
|
-
* Setup browser context (Playwright)
|
|
36
|
-
*/
|
|
37
|
-
private setupBrowserContext;
|
|
38
|
-
/**
|
|
39
|
-
* Setup Puppeteer context
|
|
40
|
-
*/
|
|
41
|
-
private setupPuppeteerContext;
|
|
42
|
-
/**
|
|
43
|
-
* Create test context
|
|
44
|
-
*/
|
|
45
|
-
private createTestContext;
|
|
46
|
-
/**
|
|
47
|
-
* Setup test fixtures
|
|
48
|
-
*/
|
|
49
|
-
private setupTestFixtures;
|
|
50
|
-
/**
|
|
51
|
-
* Cleanup test fixtures
|
|
52
|
-
*/
|
|
53
|
-
private cleanupTestFixtures;
|
|
54
|
-
/**
|
|
55
|
-
* Run beforeEach hooks
|
|
56
|
-
*/
|
|
57
|
-
private runBeforeEachHooks;
|
|
58
|
-
/**
|
|
59
|
-
* Run afterEach hooks
|
|
60
|
-
*/
|
|
61
|
-
private runAfterEachHooks;
|
|
62
|
-
/**
|
|
63
|
-
* Run setup files
|
|
64
|
-
*/
|
|
65
|
-
private runSetupFiles;
|
|
66
|
-
/**
|
|
67
|
-
* Run teardown files
|
|
68
|
-
*/
|
|
69
|
-
private runTeardownFiles;
|
|
70
|
-
/**
|
|
71
|
-
* Take screenshot
|
|
72
|
-
*/
|
|
73
|
-
private takeScreenshot;
|
|
74
|
-
/**
|
|
75
|
-
* Format error for test result
|
|
76
|
-
*/
|
|
77
|
-
private formatError;
|
|
78
|
-
/**
|
|
79
|
-
* Create skipped test result
|
|
80
|
-
*/
|
|
81
|
-
private createSkippedResult;
|
|
82
|
-
/**
|
|
83
|
-
* Cleanup execution context
|
|
84
|
-
*/
|
|
85
|
-
private cleanupExecutionContext;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Parallel test runner
|
|
89
|
-
*/
|
|
90
|
-
declare class ParallelTestRunner extends CoreTestRunner {
|
|
91
|
-
/**
|
|
92
|
-
* Run test suites in parallel
|
|
93
|
-
*/
|
|
94
|
-
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
95
|
-
/**
|
|
96
|
-
* Split suites into chunks for parallel execution
|
|
97
|
-
*/
|
|
98
|
-
private chunkSuites;
|
|
99
|
-
/**
|
|
100
|
-
* Run a worker with assigned test suites
|
|
101
|
-
*/
|
|
102
|
-
private runWorker;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Create test runner based on configuration
|
|
106
|
-
*/
|
|
107
|
-
declare function createTestRunner(config: TestConfig): TestRunner;
|
|
108
|
-
/**
|
|
109
|
-
* Run performance measurements
|
|
110
|
-
*/
|
|
111
|
-
declare function measurePerformance(page: any, testFn: () => Promise<void>): Promise<PerformanceMetrics>;
|
|
1
|
+
import { T as TestConfig, M as MockFunction, P as PageObject, S as SpyFunction, a as TestSuite, b as TestFunction, c as TestCase, d as TestEnvironment, B as BrowserType, e as TestResult } from './types-D-rCVkf3.mjs';
|
|
2
|
+
export { A as AccessibilityCheckResult, f as AccessibilityIncomplete, g as AccessibilityNode, h as AccessibilityPass, i as AccessibilityResult, j as AccessibilityViolation, k as AssertAPI, l as BrowserTestOptions, C as CoverageData, E as E2EAction, m as E2EStep, n as ExpectAPI, o as ExpectMatcher, p as PerformanceMetrics, q as TestContext, r as TestDataProvider, s as TestDiscoveryOptions, t as TestError, u as TestFixture, v as TestLog, w as TestReporter, x as TestRunner, y as TestStatus, V as VisualTestConfig } from './types-D-rCVkf3.mjs';
|
|
3
|
+
export { CoreTestRunner, ParallelTestRunner, createTestRunner, measurePerformance } from './runner.mjs';
|
|
4
|
+
export { AssertionError, createAssertAPI, createExpectAPI } from './assertions.mjs';
|
|
112
5
|
|
|
113
6
|
/**
|
|
114
7
|
* Default test configuration
|
|
@@ -243,4 +136,4 @@ declare function quickStartTesting(options?: {
|
|
|
243
136
|
*/
|
|
244
137
|
declare const VERSION = "0.1.0";
|
|
245
138
|
|
|
246
|
-
export { BrowserType,
|
|
139
|
+
export { BrowserType, DEFAULT_CONFIG, MockFunction, PageObject, SpyFunction, TestCase, TestConfig, TestEnvironment, TestFunction, TestResult, TestSuite, VERSION, afterAll, afterEach, beforeAll, beforeEach, clearTests, createLokaScriptTestContext, createMock, createPageObject, createSpy, describe, describe_only, describe_skip, fixture, it, it_only, it_skip, quickStartTesting, runTests, test, waitFor };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,114 +1,7 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
export { A as AccessibilityCheckResult,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Test Runner
|
|
6
|
-
* Core test execution engine with multi-environment support
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Core test runner implementation
|
|
11
|
-
*/
|
|
12
|
-
declare class CoreTestRunner implements TestRunner {
|
|
13
|
-
private executionContext;
|
|
14
|
-
/**
|
|
15
|
-
* Run all test suites
|
|
16
|
-
*/
|
|
17
|
-
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Run a single test suite
|
|
20
|
-
*/
|
|
21
|
-
runSuite(suite: TestSuite, config: TestConfig): Promise<TestResult[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Run a single test
|
|
24
|
-
*/
|
|
25
|
-
runTest(test: TestCase, context: TestContext): Promise<TestResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Setup execution context
|
|
28
|
-
*/
|
|
29
|
-
private setupExecutionContext;
|
|
30
|
-
/**
|
|
31
|
-
* Setup JSDOM context
|
|
32
|
-
*/
|
|
33
|
-
private setupJSDOMContext;
|
|
34
|
-
/**
|
|
35
|
-
* Setup browser context (Playwright)
|
|
36
|
-
*/
|
|
37
|
-
private setupBrowserContext;
|
|
38
|
-
/**
|
|
39
|
-
* Setup Puppeteer context
|
|
40
|
-
*/
|
|
41
|
-
private setupPuppeteerContext;
|
|
42
|
-
/**
|
|
43
|
-
* Create test context
|
|
44
|
-
*/
|
|
45
|
-
private createTestContext;
|
|
46
|
-
/**
|
|
47
|
-
* Setup test fixtures
|
|
48
|
-
*/
|
|
49
|
-
private setupTestFixtures;
|
|
50
|
-
/**
|
|
51
|
-
* Cleanup test fixtures
|
|
52
|
-
*/
|
|
53
|
-
private cleanupTestFixtures;
|
|
54
|
-
/**
|
|
55
|
-
* Run beforeEach hooks
|
|
56
|
-
*/
|
|
57
|
-
private runBeforeEachHooks;
|
|
58
|
-
/**
|
|
59
|
-
* Run afterEach hooks
|
|
60
|
-
*/
|
|
61
|
-
private runAfterEachHooks;
|
|
62
|
-
/**
|
|
63
|
-
* Run setup files
|
|
64
|
-
*/
|
|
65
|
-
private runSetupFiles;
|
|
66
|
-
/**
|
|
67
|
-
* Run teardown files
|
|
68
|
-
*/
|
|
69
|
-
private runTeardownFiles;
|
|
70
|
-
/**
|
|
71
|
-
* Take screenshot
|
|
72
|
-
*/
|
|
73
|
-
private takeScreenshot;
|
|
74
|
-
/**
|
|
75
|
-
* Format error for test result
|
|
76
|
-
*/
|
|
77
|
-
private formatError;
|
|
78
|
-
/**
|
|
79
|
-
* Create skipped test result
|
|
80
|
-
*/
|
|
81
|
-
private createSkippedResult;
|
|
82
|
-
/**
|
|
83
|
-
* Cleanup execution context
|
|
84
|
-
*/
|
|
85
|
-
private cleanupExecutionContext;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Parallel test runner
|
|
89
|
-
*/
|
|
90
|
-
declare class ParallelTestRunner extends CoreTestRunner {
|
|
91
|
-
/**
|
|
92
|
-
* Run test suites in parallel
|
|
93
|
-
*/
|
|
94
|
-
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
95
|
-
/**
|
|
96
|
-
* Split suites into chunks for parallel execution
|
|
97
|
-
*/
|
|
98
|
-
private chunkSuites;
|
|
99
|
-
/**
|
|
100
|
-
* Run a worker with assigned test suites
|
|
101
|
-
*/
|
|
102
|
-
private runWorker;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Create test runner based on configuration
|
|
106
|
-
*/
|
|
107
|
-
declare function createTestRunner(config: TestConfig): TestRunner;
|
|
108
|
-
/**
|
|
109
|
-
* Run performance measurements
|
|
110
|
-
*/
|
|
111
|
-
declare function measurePerformance(page: any, testFn: () => Promise<void>): Promise<PerformanceMetrics>;
|
|
1
|
+
import { T as TestConfig, M as MockFunction, P as PageObject, S as SpyFunction, a as TestSuite, b as TestFunction, c as TestCase, d as TestEnvironment, B as BrowserType, e as TestResult } from './types-D-rCVkf3.js';
|
|
2
|
+
export { A as AccessibilityCheckResult, f as AccessibilityIncomplete, g as AccessibilityNode, h as AccessibilityPass, i as AccessibilityResult, j as AccessibilityViolation, k as AssertAPI, l as BrowserTestOptions, C as CoverageData, E as E2EAction, m as E2EStep, n as ExpectAPI, o as ExpectMatcher, p as PerformanceMetrics, q as TestContext, r as TestDataProvider, s as TestDiscoveryOptions, t as TestError, u as TestFixture, v as TestLog, w as TestReporter, x as TestRunner, y as TestStatus, V as VisualTestConfig } from './types-D-rCVkf3.js';
|
|
3
|
+
export { CoreTestRunner, ParallelTestRunner, createTestRunner, measurePerformance } from './runner.js';
|
|
4
|
+
export { AssertionError, createAssertAPI, createExpectAPI } from './assertions.js';
|
|
112
5
|
|
|
113
6
|
/**
|
|
114
7
|
* Default test configuration
|
|
@@ -243,4 +136,4 @@ declare function quickStartTesting(options?: {
|
|
|
243
136
|
*/
|
|
244
137
|
declare const VERSION = "0.1.0";
|
|
245
138
|
|
|
246
|
-
export { BrowserType,
|
|
139
|
+
export { BrowserType, DEFAULT_CONFIG, MockFunction, PageObject, SpyFunction, TestCase, TestConfig, TestEnvironment, TestFunction, TestResult, TestSuite, VERSION, afterAll, afterEach, beforeAll, beforeEach, clearTests, createLokaScriptTestContext, createMock, createPageObject, createSpy, describe, describe_only, describe_skip, fixture, it, it_only, it_skip, quickStartTesting, runTests, test, waitFor };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { x as TestRunner, a as TestSuite, T as TestConfig, e as TestResult, c as TestCase, q as TestContext, p as PerformanceMetrics } from './types-D-rCVkf3.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Test Runner
|
|
5
|
+
* Core test execution engine with multi-environment support
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Core test runner implementation
|
|
10
|
+
*/
|
|
11
|
+
declare class CoreTestRunner implements TestRunner {
|
|
12
|
+
private executionContext;
|
|
13
|
+
/**
|
|
14
|
+
* Run all test suites
|
|
15
|
+
*/
|
|
16
|
+
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Run a single test suite
|
|
19
|
+
*/
|
|
20
|
+
runSuite(suite: TestSuite, config: TestConfig): Promise<TestResult[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Run a single test
|
|
23
|
+
*/
|
|
24
|
+
runTest(test: TestCase, context: TestContext): Promise<TestResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Setup execution context
|
|
27
|
+
*/
|
|
28
|
+
private setupExecutionContext;
|
|
29
|
+
/**
|
|
30
|
+
* Setup JSDOM context
|
|
31
|
+
*/
|
|
32
|
+
private setupJSDOMContext;
|
|
33
|
+
/**
|
|
34
|
+
* Setup browser context (Playwright)
|
|
35
|
+
*/
|
|
36
|
+
private setupBrowserContext;
|
|
37
|
+
/**
|
|
38
|
+
* Setup Puppeteer context
|
|
39
|
+
*/
|
|
40
|
+
private setupPuppeteerContext;
|
|
41
|
+
/**
|
|
42
|
+
* Create test context
|
|
43
|
+
*/
|
|
44
|
+
private createTestContext;
|
|
45
|
+
/**
|
|
46
|
+
* Setup test fixtures
|
|
47
|
+
*/
|
|
48
|
+
private setupTestFixtures;
|
|
49
|
+
/**
|
|
50
|
+
* Cleanup test fixtures
|
|
51
|
+
*/
|
|
52
|
+
private cleanupTestFixtures;
|
|
53
|
+
/**
|
|
54
|
+
* Run beforeEach hooks
|
|
55
|
+
*/
|
|
56
|
+
private runBeforeEachHooks;
|
|
57
|
+
/**
|
|
58
|
+
* Run afterEach hooks
|
|
59
|
+
*/
|
|
60
|
+
private runAfterEachHooks;
|
|
61
|
+
/**
|
|
62
|
+
* Run setup files
|
|
63
|
+
*/
|
|
64
|
+
private runSetupFiles;
|
|
65
|
+
/**
|
|
66
|
+
* Run teardown files
|
|
67
|
+
*/
|
|
68
|
+
private runTeardownFiles;
|
|
69
|
+
/**
|
|
70
|
+
* Take screenshot
|
|
71
|
+
*/
|
|
72
|
+
private takeScreenshot;
|
|
73
|
+
/**
|
|
74
|
+
* Format error for test result
|
|
75
|
+
*/
|
|
76
|
+
private formatError;
|
|
77
|
+
/**
|
|
78
|
+
* Create skipped test result
|
|
79
|
+
*/
|
|
80
|
+
private createSkippedResult;
|
|
81
|
+
/**
|
|
82
|
+
* Cleanup execution context
|
|
83
|
+
*/
|
|
84
|
+
private cleanupExecutionContext;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Parallel test runner
|
|
88
|
+
*/
|
|
89
|
+
declare class ParallelTestRunner extends CoreTestRunner {
|
|
90
|
+
/**
|
|
91
|
+
* Run test suites in parallel
|
|
92
|
+
*/
|
|
93
|
+
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Split suites into chunks for parallel execution
|
|
96
|
+
*/
|
|
97
|
+
private chunkSuites;
|
|
98
|
+
/**
|
|
99
|
+
* Run a worker with assigned test suites
|
|
100
|
+
*/
|
|
101
|
+
private runWorker;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Create test runner based on configuration
|
|
105
|
+
*/
|
|
106
|
+
declare function createTestRunner(config: TestConfig): TestRunner;
|
|
107
|
+
/**
|
|
108
|
+
* Run performance measurements
|
|
109
|
+
*/
|
|
110
|
+
declare function measurePerformance(page: any, testFn: () => Promise<void>): Promise<PerformanceMetrics>;
|
|
111
|
+
|
|
112
|
+
export { CoreTestRunner, ParallelTestRunner, createTestRunner, measurePerformance };
|
package/dist/runner.d.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { x as TestRunner, a as TestSuite, T as TestConfig, e as TestResult, c as TestCase, q as TestContext, p as PerformanceMetrics } from './types-D-rCVkf3.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Test Runner
|
|
5
|
+
* Core test execution engine with multi-environment support
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Core test runner implementation
|
|
10
|
+
*/
|
|
11
|
+
declare class CoreTestRunner implements TestRunner {
|
|
12
|
+
private executionContext;
|
|
13
|
+
/**
|
|
14
|
+
* Run all test suites
|
|
15
|
+
*/
|
|
16
|
+
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Run a single test suite
|
|
19
|
+
*/
|
|
20
|
+
runSuite(suite: TestSuite, config: TestConfig): Promise<TestResult[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Run a single test
|
|
23
|
+
*/
|
|
24
|
+
runTest(test: TestCase, context: TestContext): Promise<TestResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Setup execution context
|
|
27
|
+
*/
|
|
28
|
+
private setupExecutionContext;
|
|
29
|
+
/**
|
|
30
|
+
* Setup JSDOM context
|
|
31
|
+
*/
|
|
32
|
+
private setupJSDOMContext;
|
|
33
|
+
/**
|
|
34
|
+
* Setup browser context (Playwright)
|
|
35
|
+
*/
|
|
36
|
+
private setupBrowserContext;
|
|
37
|
+
/**
|
|
38
|
+
* Setup Puppeteer context
|
|
39
|
+
*/
|
|
40
|
+
private setupPuppeteerContext;
|
|
41
|
+
/**
|
|
42
|
+
* Create test context
|
|
43
|
+
*/
|
|
44
|
+
private createTestContext;
|
|
45
|
+
/**
|
|
46
|
+
* Setup test fixtures
|
|
47
|
+
*/
|
|
48
|
+
private setupTestFixtures;
|
|
49
|
+
/**
|
|
50
|
+
* Cleanup test fixtures
|
|
51
|
+
*/
|
|
52
|
+
private cleanupTestFixtures;
|
|
53
|
+
/**
|
|
54
|
+
* Run beforeEach hooks
|
|
55
|
+
*/
|
|
56
|
+
private runBeforeEachHooks;
|
|
57
|
+
/**
|
|
58
|
+
* Run afterEach hooks
|
|
59
|
+
*/
|
|
60
|
+
private runAfterEachHooks;
|
|
61
|
+
/**
|
|
62
|
+
* Run setup files
|
|
63
|
+
*/
|
|
64
|
+
private runSetupFiles;
|
|
65
|
+
/**
|
|
66
|
+
* Run teardown files
|
|
67
|
+
*/
|
|
68
|
+
private runTeardownFiles;
|
|
69
|
+
/**
|
|
70
|
+
* Take screenshot
|
|
71
|
+
*/
|
|
72
|
+
private takeScreenshot;
|
|
73
|
+
/**
|
|
74
|
+
* Format error for test result
|
|
75
|
+
*/
|
|
76
|
+
private formatError;
|
|
77
|
+
/**
|
|
78
|
+
* Create skipped test result
|
|
79
|
+
*/
|
|
80
|
+
private createSkippedResult;
|
|
81
|
+
/**
|
|
82
|
+
* Cleanup execution context
|
|
83
|
+
*/
|
|
84
|
+
private cleanupExecutionContext;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Parallel test runner
|
|
88
|
+
*/
|
|
89
|
+
declare class ParallelTestRunner extends CoreTestRunner {
|
|
90
|
+
/**
|
|
91
|
+
* Run test suites in parallel
|
|
92
|
+
*/
|
|
93
|
+
run(suites: TestSuite[], config: TestConfig): Promise<TestResult[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Split suites into chunks for parallel execution
|
|
96
|
+
*/
|
|
97
|
+
private chunkSuites;
|
|
98
|
+
/**
|
|
99
|
+
* Run a worker with assigned test suites
|
|
100
|
+
*/
|
|
101
|
+
private runWorker;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Create test runner based on configuration
|
|
105
|
+
*/
|
|
106
|
+
declare function createTestRunner(config: TestConfig): TestRunner;
|
|
107
|
+
/**
|
|
108
|
+
* Run performance measurements
|
|
109
|
+
*/
|
|
110
|
+
declare function measurePerformance(page: any, testFn: () => Promise<void>): Promise<PerformanceMetrics>;
|
|
111
|
+
|
|
112
|
+
export { CoreTestRunner, ParallelTestRunner, createTestRunner, measurePerformance };
|