datagrok-tools 4.12.21 → 4.12.22

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.
@@ -24,7 +24,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
24
24
 
25
25
  function test(args) {
26
26
  var options = Object.keys(args).slice(1);
27
- var commandOptions = ['host', 'csv', 'gui', 'catchUnhandled', 'platform', 'core', 'report', 'skip-build', 'skip-publish', 'category', 'record', 'verbose', 'benchmark'];
27
+ var commandOptions = ['host', 'csv', 'gui', 'catchUnhandled', 'platform', 'core', 'report', 'skip-build', 'skip-publish', 'path', 'record', 'verbose', 'benchmark'];
28
28
  var nArgs = args['_'].length;
29
29
  var curDir = process.cwd();
30
30
  var grokDir = _path["default"].join(_os["default"].homedir(), '.grok');
@@ -169,10 +169,17 @@ function test(args) {
169
169
  if (options.benchmark) window.DG.Test.isInBenchmark = true;
170
170
  return new Promise(function (resolve, reject) {
171
171
  var params = {
172
- category: options.category,
173
172
  testContext: testContext
174
173
  };
175
- if (targetPackage === 'DevTools') params.skipCore = options.core ? false : true;
174
+ if (options.path) {
175
+ var split = options.path.split(' -- ');
176
+ params.category = split[0];
177
+ params.test = split[1];
178
+ }
179
+ if (targetPackage === 'DevTools') {
180
+ params.skipCore = options.core ? false : true;
181
+ params.verbose = options.verbose === true;
182
+ }
176
183
  window.grok.functions.call("".concat(targetPackage, ":").concat(options.platform ? 'testPlatform' : 'test'), params).then(function (df) {
177
184
  var failed = false;
178
185
  var skipReport = '';
@@ -184,7 +191,7 @@ function test(args) {
184
191
  };
185
192
  if (df == null) {
186
193
  failed = true;
187
- failReport = "Fail reason: No package tests found".concat(options.category ? " for category \"".concat(options.category, "\"") : '');
194
+ failReport = "Fail reason: No package tests found".concat(options.path ? " for path \"".concat(options.path, "\"") : '');
188
195
  resolve({
189
196
  failReport: failReport,
190
197
  skipReport: skipReport,
@@ -281,7 +288,7 @@ function test(args) {
281
288
  case 10:
282
289
  _context3.next = 12;
283
290
  return runTest(7200000, {
284
- category: args.category,
291
+ path: args.path,
285
292
  verbose: args.verbose,
286
293
  platform: args.platform,
287
294
  catchUnhandled: args.catchUnhandled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.12.21",
3
+ "version": "4.12.22",
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": {