@datadog/datadog-ci 0.17.11 → 0.17.12
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.
|
@@ -28,12 +28,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
const advanced_1 = require("clipanion/lib/advanced");
|
|
31
32
|
const ciUtils = __importStar(require("../../../helpers/utils"));
|
|
32
33
|
const command_1 = require("../command");
|
|
33
34
|
const interfaces_1 = require("../interfaces");
|
|
34
35
|
const runTests = __importStar(require("../run-test"));
|
|
35
36
|
const utils = __importStar(require("../utils"));
|
|
36
37
|
const fixtures_1 = require("./fixtures");
|
|
38
|
+
test('all option flags are supported', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
const options = [
|
|
40
|
+
'apiKey',
|
|
41
|
+
'appKey',
|
|
42
|
+
'failOnCriticalErrors',
|
|
43
|
+
'config',
|
|
44
|
+
'datadogSite',
|
|
45
|
+
'files',
|
|
46
|
+
'failOnTimeout',
|
|
47
|
+
'public-id',
|
|
48
|
+
'search',
|
|
49
|
+
'subdomain',
|
|
50
|
+
'tunnel',
|
|
51
|
+
'jUnitReport',
|
|
52
|
+
'runName',
|
|
53
|
+
];
|
|
54
|
+
const cli = new advanced_1.Cli();
|
|
55
|
+
cli.register(command_1.RunTestCommand);
|
|
56
|
+
const usage = cli.usage(command_1.RunTestCommand);
|
|
57
|
+
options.forEach((option) => expect(usage).toContain(`--${option}`));
|
|
58
|
+
}));
|
|
37
59
|
describe('run-test', () => {
|
|
38
60
|
beforeEach(() => {
|
|
39
61
|
jest.restoreAllMocks();
|
|
@@ -226,4 +226,5 @@ RunTestCommand.addOption('publicIds', clipanion_1.Command.Array('-p,--public-id'
|
|
|
226
226
|
RunTestCommand.addOption('testSearchQuery', clipanion_1.Command.String('-s,--search'));
|
|
227
227
|
RunTestCommand.addOption('subdomain', clipanion_1.Command.Boolean('--subdomain'));
|
|
228
228
|
RunTestCommand.addOption('tunnel', clipanion_1.Command.Boolean('-t,--tunnel'));
|
|
229
|
+
RunTestCommand.addOption('jUnitReport', clipanion_1.Command.String('-j,--jUnitReport'));
|
|
229
230
|
RunTestCommand.addOption('runName', clipanion_1.Command.String('-n,--runName'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datadog/datadog-ci",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.12",
|
|
4
4
|
"description": "Run datadog actions from the CI.",
|
|
5
5
|
"repository": "https://github.com/DataDog/datadog-ci",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"check-licenses": "node bin/check-licenses.js",
|
|
29
29
|
"clean": "rm -rf dist/*",
|
|
30
30
|
"format": "yarn tslint --fix && yarn prettier --write",
|
|
31
|
-
"launch": "ts-node --transpile-only src/
|
|
32
|
-
"launch:debug": "node -r ts-node/register/transpile-only --inspect-brk src/
|
|
31
|
+
"launch": "ts-node --transpile-only src/cli.ts",
|
|
32
|
+
"launch:debug": "node -r ts-node/register/transpile-only --inspect-brk src/cli.ts",
|
|
33
33
|
"lint": "(yarn tslint && yarn prettier --check) || (echo \"\nYou can fix this by running ==> yarn format <==\n\" && false)",
|
|
34
34
|
"prepack": "yarn build && node ./bin/make-it-executable.js",
|
|
35
35
|
"prettier": "prettier \"src/**/*.{ts,js,json,yml}\" --ignore-path .gitignore",
|