Skip to content

Commit 18ed8c5

Browse files
TheSpyderjscasca
andauthored
TINY-11177: Vastly improve remote testing (#145)
Co-authored-by: Seb <[email protected]>
1 parent a4dbd4e commit 18ed8c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2401
-1564
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## Unreleased
8+
9+
## Added
10+
- New server-side APIs to accept a batch of results instead of a single result #TINY-11177
11+
12+
## Changed
13+
- Reverted TINY-10708 which was a server-side fix
14+
- Client no longer waits for log requests to complete between tests, which should speed up remote testing #TINY-11177
15+
- Console HUD no longer updates for individual tests #TINY-11177
16+
- Client now posts test status only in batches every 30 seconds, this is the only time the console HUD will update #TINY-11177
17+
18+
## Removed
19+
- Single result server-side API #TINY-11177
20+
- Server-side monitoring of single test timeouts. This is still monitored client side. #TINY-11177
21+
- The Promise polyfill is no longer allowed on modern NodeJS frameworks so it has been removed. #TINY-11177
22+
723
## 14.1.5 - 2024-10-18
824

925
### Added

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ timestamps {
4040
sh 'yarn build'
4141
},
4242
testDirs: [ 'modules/sample/src/test/ts/**/pass' ],
43-
custom: '--config modules/sample/tsconfig.json --customRoutes modules/sample/routes.json --polyfills Promise Symbol'
43+
custom: '--config modules/sample/tsconfig.json --customRoutes modules/sample/routes.json'
4444
)
4545
}
4646

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"npmClient": "yarn",
33
"useWorkspaces": true,
4-
"version": "14.1.5",
4+
"version": "15.0.0-alpha.10",
55
"publish": {
66
"push": false
77
}

modules/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ephox/bedrock-client",
3-
"version": "14.1.1",
3+
"version": "15.0.0-alpha.10",
44
"author": "Tiny Technologies Inc",
55
"license": "Apache-2.0",
66
"scripts": {
@@ -10,7 +10,7 @@
1010
"buildAndTest": "yarn prepublishOnly && yarn test"
1111
},
1212
"dependencies": {
13-
"@ephox/bedrock-common": "^14.1.1",
13+
"@ephox/bedrock-common": "^15.0.0-alpha.7",
1414
"@ephox/dispute": "^1.0.3"
1515
},
1616
"main": "./lib/main/ts/api/Main.js",
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Context, Failure, TestError, TestLabel, TestLogs } from '@ephox/bedrock-common';
2-
import { it } from './Bdd';
2+
import { describe, it } from './Bdd';
33

44
type TestLogs = TestLogs.TestLogs;
55
type TestError = TestError.TestError;
@@ -10,11 +10,13 @@ export type FailureCallback = (error: TestThrowable, logs?: TestLogs) => void;
1010

1111
/** An asynchronous test with callbacks. */
1212
export const asyncTest = (name: string, test: (this: Context, success: SuccessCallback, failure: FailureCallback) => void): void => {
13-
it(name, function (done) {
14-
test.call(this, () => done(), ((err, logs) => {
15-
const r = Failure.prepFailure(err, logs);
16-
done(r);
17-
}));
13+
describe('old-style test', () => {
14+
it(name, function (done) {
15+
test.call(this, () => done(), ((err, logs) => {
16+
const r = Failure.prepFailure(err, logs);
17+
done(r);
18+
}));
19+
});
1820
});
1921
};
2022

@@ -23,10 +25,14 @@ export const asynctest = asyncTest;
2325

2426
/** A synchronous test that fails if an exception is thrown */
2527
export const test = (name: string, test: (this: Context) => void): void => {
26-
it(name, test);
28+
describe('old-style test', () => {
29+
it(name, test);
30+
});
2731
};
2832

2933
/** Tests an async function (function that returns a Promise). */
3034
export const promiseTest = (name: string, test: (this: Context) => Promise<void>): void => {
31-
it(name, test);
35+
describe('old-style test', () => {
36+
it(name, test);
37+
});
3238
};

modules/client/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"strict": true,
55
"noUnusedLocals": true,
66
"useUnknownInCatchVariables": false,
7-
"target": "es5",
8-
"module": "es2015",
9-
"lib": ["es2015", "dom"],
7+
"target": "es2019",
8+
"module": "es2020",
9+
"lib": ["es2022", "dom"],
1010
"declaration": true,
1111
"sourceMap": true,
1212
"outDir": "lib",

modules/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ephox/bedrock-common",
3-
"version": "14.1.1",
3+
"version": "15.0.0-alpha.7",
44
"author": "Tiny Technologies Inc",
55
"license": "Apache-2.0",
66
"scripts": {

modules/common/tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"strict": true,
55
"noUnusedLocals": true,
66
"useUnknownInCatchVariables": false,
7-
"target": "es5",
8-
"module": "es2015",
9-
"lib": ["es2015", "dom"],
7+
"target": "es2019",
8+
"module": "es2020",
9+
"lib": ["es2022", "dom"],
1010
"declaration": true,
1111
"sourceMap": true,
1212
"outDir": "lib",
13+
1314
"rootDir": "src",
1415
"types": []
1516
},

modules/runner/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ephox/bedrock-runner",
3-
"version": "14.1.1",
3+
"version": "15.0.0-alpha.10",
44
"author": "Tiny Technologies Inc",
55
"license": "Apache-2.0",
66
"scripts": {
@@ -10,19 +10,18 @@
1010
"buildAndTest": "yarn prepublishOnly && yarn test"
1111
},
1212
"dependencies": {
13-
"@ephox/bedrock-common": "^14.1.1",
14-
"@ephox/wrap-promise-polyfill": "^2.2.0",
13+
"@ephox/bedrock-common": "^15.0.0-alpha.7",
1514
"jquery": "^3.4.1",
1615
"querystringify": "^2.1.1"
1716
},
1817
"devDependencies": {
1918
"@types/diff": "^5.0.0",
2019
"@types/jquery": "^3.5.3",
2120
"@types/querystringify": "^2.0.0",
22-
"rollup": "^1.20.2",
21+
"rollup": "^4.30.1",
2322
"rollup-plugin-commonjs": "^10.1.0",
2423
"rollup-plugin-node-resolve": "^5.2.0",
25-
"rollup-plugin-sourcemaps": "^0.4.2",
24+
"rollup-plugin-sourcemaps": "^0.6.3",
2625
"sourcemapped-stacktrace": "^1.1.11"
2726
},
2827
"main": "./lib/main/ts/api/Main.js",

0 commit comments

Comments
 (0)