cypress-xray-plugin
Version:
A Cypress plugin for uploading test results to Xray (test management for Jira)
72 lines (71 loc) • 3.1 kB
TypeScript
/**
* Contains a mapping of all available options to their respective environment variable names.
*/
export declare const ENV_NAMES: {
readonly authentication: {
readonly jira: {
readonly apiToken: "JIRA_API_TOKEN";
readonly password: "JIRA_PASSWORD";
readonly username: "JIRA_USERNAME";
};
readonly xray: {
readonly clientId: "XRAY_CLIENT_ID";
readonly clientSecret: "XRAY_CLIENT_SECRET";
};
};
readonly cucumber: {
readonly downloadFeatures: "CUCUMBER_DOWNLOAD_FEATURES";
readonly featureFileExtension: "CUCUMBER_FEATURE_FILE_EXTENSION";
readonly prefixes: {
readonly precondition: "CUCUMBER_PREFIXES_PRECONDITION";
readonly test: "CUCUMBER_PREFIXES_TEST";
};
readonly uploadFeatures: "CUCUMBER_UPLOAD_FEATURES";
};
readonly jira: {
readonly attachVideos: "JIRA_ATTACH_VIDEOS";
readonly fields: {
readonly description: "JIRA_FIELDS_DESCRIPTION";
readonly labels: "JIRA_FIELDS_LABELS";
readonly summary: "JIRA_FIELDS_SUMMARY";
readonly testEnvironments: "JIRA_FIELDS_TEST_ENVIRONMENTS";
readonly testPlan: "JIRA_FIELDS_TEST_PLAN";
};
readonly projectKey: "JIRA_PROJECT_KEY";
readonly testExecutionIssue: "JIRA_TEST_EXECUTION_ISSUE";
readonly testExecutionIssueDescription: "JIRA_TEST_EXECUTION_ISSUE_DESCRIPTION";
readonly testExecutionIssueKey: "JIRA_TEST_EXECUTION_ISSUE_KEY";
readonly testExecutionIssueSummary: "JIRA_TEST_EXECUTION_ISSUE_SUMMARY";
readonly testExecutionIssueType: "JIRA_TEST_EXECUTION_ISSUE_TYPE";
readonly testPlanIssueKey: "JIRA_TEST_PLAN_ISSUE_KEY";
readonly testPlanIssueType: "JIRA_TEST_PLAN_ISSUE_TYPE";
readonly url: "JIRA_URL";
};
readonly plugin: {
readonly debug: "PLUGIN_DEBUG";
readonly enabled: "PLUGIN_ENABLED";
readonly logDirectory: "PLUGIN_LOG_DIRECTORY";
readonly normalizeScreenshotNames: "PLUGIN_NORMALIZE_SCREENSHOT_NAMES";
readonly splitUpload: "PLUGIN_SPLIT_UPLOAD";
readonly uploadLastAttempt: "PLUGIN_UPLOAD_LAST_ATTEMPT";
};
readonly xray: {
readonly status: {
readonly failed: "XRAY_STATUS_FAILED";
readonly passed: "XRAY_STATUS_PASSED";
readonly pending: "XRAY_STATUS_PENDING";
readonly skipped: "XRAY_STATUS_SKIPPED";
readonly step: {
readonly failed: "XRAY_STATUS_STEP_FAILED";
readonly passed: "XRAY_STATUS_STEP_PASSED";
readonly pending: "XRAY_STATUS_STEP_PENDING";
readonly skipped: "XRAY_STATUS_STEP_SKIPPED";
};
};
readonly testEnvironments: "XRAY_TEST_ENVIRONMENTS";
readonly uploadRequests: "XRAY_UPLOAD_REQUESTS";
readonly uploadResults: "XRAY_UPLOAD_RESULTS";
readonly uploadScreenshots: "XRAY_UPLOAD_SCREENSHOTS";
readonly url: "XRAY_URL";
};
};