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 +7 -0
- package/bin/commands/test.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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', '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