@testring/plugin-api
Advanced tools
@@ -20,6 +20,9 @@ "use strict"; | ||
| } | ||
| shouldRetry(handler) { | ||
| this.registryWritePlugin("shouldRetry" /* shouldRetry */, handler); | ||
| shouldNotRetry(handler) { | ||
| this.registryWritePlugin("shouldNotRetry" /* shouldNotRetry */, handler); | ||
| } | ||
| shouldNotStart(handler) { | ||
| this.registryWritePlugin("shouldNotStart" /* shouldNotStart */, handler); | ||
| } | ||
| } | ||
| exports.TestRunControllerAPI = TestRunControllerAPI; |
+4
-4
| { | ||
| "name": "@testring/plugin-api", | ||
| "version": "0.4.53", | ||
| "version": "0.4.54", | ||
| "main": "./dist/index.js", | ||
@@ -13,6 +13,6 @@ "types": "./src/index.ts", | ||
| "dependencies": { | ||
| "@testring/logger": "0.4.53", | ||
| "@testring/types": "0.4.53", | ||
| "@testring/utils": "0.4.53" | ||
| "@testring/logger": "0.4.54", | ||
| "@testring/types": "0.4.54", | ||
| "@testring/utils": "0.4.54" | ||
| } | ||
| } |
@@ -6,3 +6,3 @@ import { TestRunControllerPlugins, IQueuedTest } from '@testring/types'; | ||
| beforeRun(handler: (queue: Array<IQueuedTest>) => Promise<IQueuedTest[]>) { | ||
| beforeRun(handler: (queue: IQueuedTest[]) => Promise<IQueuedTest[]>) { | ||
| this.registryWritePlugin(TestRunControllerPlugins.beforeRun, handler); | ||
@@ -23,9 +23,13 @@ } | ||
| afterRun(handler: (queue: Array<IQueuedTest>) => Promise<void>) { | ||
| afterRun(handler: (queue: IQueuedTest[]) => Promise<void>) { | ||
| this.registryWritePlugin(TestRunControllerPlugins.afterRun, handler); | ||
| } | ||
| shouldRetry(handler: (testPath: string) => Promise<boolean>) { | ||
| this.registryWritePlugin(TestRunControllerPlugins.shouldRetry, handler); | ||
| shouldNotRetry(handler: (state: boolean, test: IQueuedTest) => Promise<boolean>) { | ||
| this.registryWritePlugin(TestRunControllerPlugins.shouldNotRetry, handler); | ||
| } | ||
| shouldNotStart(handler: (state: boolean, test: IQueuedTest) => Promise<boolean>) { | ||
| this.registryWritePlugin(TestRunControllerPlugins.shouldNotStart, handler); | ||
| } | ||
| } |
15311
2.12%374
1.63%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated