datagrok-tools 4.13.8 → 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 +13 -0
- package/bin/commands/test.js +15 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 4.13.9 (2024-07-29)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Added ability to select category by args variable
|
|
16
|
+
|
|
4
17
|
## 4.13.8 (2024-07-18)
|
|
5
18
|
|
|
6
19
|
### Bug Fixes
|
package/bin/commands/test.js
CHANGED
|
@@ -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'];
|
|
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');
|
|
@@ -51,6 +51,14 @@ function test(args) {
|
|
|
51
51
|
process.env.HOST = config["default"];
|
|
52
52
|
console.log('Environment variable `HOST` is set to', config["default"]);
|
|
53
53
|
}
|
|
54
|
+
var categoryToCheck = undefined;
|
|
55
|
+
if (args.category) {
|
|
56
|
+
categoryToCheck = args.category.toString();
|
|
57
|
+
}
|
|
58
|
+
var testToCheck = undefined;
|
|
59
|
+
if (args.category && args.test) {
|
|
60
|
+
testToCheck = args.test.toString();
|
|
61
|
+
}
|
|
54
62
|
if (args["package"]) {
|
|
55
63
|
process.env.TARGET_PACKAGE = utils.kebabToCamelCase(args["package"]);
|
|
56
64
|
} else {
|
|
@@ -187,7 +195,9 @@ function test(args) {
|
|
|
187
195
|
if (options.benchmark) window.DG.Test.isInBenchmark = true;
|
|
188
196
|
return new Promise(function (resolve, reject) {
|
|
189
197
|
var params = {
|
|
190
|
-
testContext: testContext
|
|
198
|
+
testContext: testContext,
|
|
199
|
+
category: options.category,
|
|
200
|
+
test: options.test
|
|
191
201
|
};
|
|
192
202
|
if (options.path) {
|
|
193
203
|
var split = options.path.split(' -- ');
|
|
@@ -312,7 +322,9 @@ function test(args) {
|
|
|
312
322
|
report: args.report,
|
|
313
323
|
record: args.record,
|
|
314
324
|
benchmark: args.benchmark,
|
|
315
|
-
core: args.core
|
|
325
|
+
core: args.core,
|
|
326
|
+
category: categoryToCheck,
|
|
327
|
+
test: testToCheck
|
|
316
328
|
});
|
|
317
329
|
case 12:
|
|
318
330
|
r = _context3.sent;
|
package/package.json
CHANGED