datagrok-tools 4.10.2 → 4.10.3

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.
@@ -1,11 +1,15 @@
1
1
  import * as DG from "datagrok-api/dg";
2
- import {runTests} from "@datagrok-libraries/utils/src/test";
2
+ import {runTests, tests} from "@datagrok-libraries/utils/src/test";
3
3
 
4
4
  export let _package = new DG.Package();
5
+ export {tests};
5
6
 
6
7
  //name: test
8
+ //input: string category {optional: true}
9
+ //input: string test {optional: true}
10
+ //input: object testContext {optional: true}
7
11
  //output: dataframe result
8
- export async function test() {
9
- let data = await runTests();
12
+ export async function test(category, test, testContext) {
13
+ const data = await runTests({category, test, testContext});
10
14
  return DG.DataFrame.fromObjects(data);
11
15
  }
@@ -1,12 +1,15 @@
1
1
  import * as DG from "datagrok-api/dg";
2
- import {runTests, tests} from '@datagrok-libraries/utils/src/test';
2
+ import {runTests, tests, TestContext} from '@datagrok-libraries/utils/src/test';
3
3
 
4
4
  export let _package = new DG.Package();
5
5
  export {tests};
6
6
 
7
7
  //name: test
8
+ //input: string category {optional: true}
9
+ //input: string test {optional: true}
10
+ //input: object testContext {optional: true}
8
11
  //output: dataframe result
9
- export async function test(): Promise<DG.DataFrame> {
10
- let data = await runTests();
12
+ export async function test(category: string, test: string, testContext: TestContext): Promise<DG.DataFrame> {
13
+ const data = await runTests({category, test, testContext});
11
14
  return DG.DataFrame.fromObjects(data)!;
12
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.10.2",
3
+ "version": "4.10.3",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {