import * as DG from 'datagrok-api/dg'; import {runTests, tests, TestContext, initAutoTests as initTests } from '@datagrok-libraries/test/src/test'; import './tests/timelines-viewer-test'; import './tests/tree-viewer-test'; import './tests/radar-viewer-test'; import './tests/viewers'; export const _package = new DG.Package(); export {tests}; //name: test //input: string category {optional: true} //input: string test {optional: true} //input: object testContext {optional: true} //output: dataframe result export async function test(category: string, test: string, testContext: TestContext): Promise { const data = await runTests({category, test, testContext}); return DG.DataFrame.fromObjects(data)!; } //name: initAutoTests export async function initAutoTests() { await initTests(_package, _package.getModule('package-test.js')); }