datagrok-tools 4.13.9 → 4.13.10

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Datagrok-tools changelog
2
2
 
3
3
 
4
+ ## 4.13.10 (2024-07-29)
5
+
6
+ ### Bug Fixes
7
+
8
+ * Added ability to select test by args variable
9
+
10
+
4
11
  ## 4.13.9 (2024-07-29)
5
12
 
6
13
  ### Bug Fixes
@@ -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', 'package', 'csv', 'gui', 'catchUnhandled', 'platform', 'core', 'report', 'skip-build', 'skip-publish', 'path', 'record', 'verbose', 'benchmark', 'category'];
27
+ var commandOptions = ['host', 'package', 'csv', 'gui', 'catchUnhandled', 'platform', 'core', 'report', 'skip-build', 'skip-publish', 'path', 'record', 'verbose', 'benchmark', 'category', 'test'];
28
28
  var nArgs = args['_'].length;
29
29
  var curDir = process.cwd();
30
30
  var grokDir = _path["default"].join(_os["default"].homedir(), '.grok');
@@ -55,6 +55,10 @@ function test(args) {
55
55
  if (args.category) {
56
56
  categoryToCheck = args.category.toString();
57
57
  }
58
+ var testToCheck = undefined;
59
+ if (args.category && args.test) {
60
+ testToCheck = args.test.toString();
61
+ }
58
62
  if (args["package"]) {
59
63
  process.env.TARGET_PACKAGE = utils.kebabToCamelCase(args["package"]);
60
64
  } else {
@@ -192,7 +196,8 @@ function test(args) {
192
196
  return new Promise(function (resolve, reject) {
193
197
  var params = {
194
198
  testContext: testContext,
195
- category: options.category
199
+ category: options.category,
200
+ test: options.test
196
201
  };
197
202
  if (options.path) {
198
203
  var split = options.path.split(' -- ');
@@ -318,7 +323,8 @@ function test(args) {
318
323
  record: args.record,
319
324
  benchmark: args.benchmark,
320
325
  core: args.core,
321
- category: categoryToCheck
326
+ category: categoryToCheck,
327
+ test: testToCheck
322
328
  });
323
329
  case 12:
324
330
  r = _context3.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.13.9",
3
+ "version": "4.13.10",
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": {