@democratize-quality/qualitylens-core 0.2.5 → 0.2.7

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.
@@ -17,6 +17,18 @@ interface StarterOptions {
17
17
  name: string;
18
18
  patterns: string[];
19
19
  }>;
20
+ ado?: {
21
+ orgUrl: string;
22
+ project: string;
23
+ planId: number;
24
+ patEnvVar: string;
25
+ };
26
+ csvConfig?: Array<{
27
+ path: string;
28
+ titleField: string;
29
+ dateField?: string;
30
+ stepsField?: string;
31
+ }>;
20
32
  }
21
33
  declare class Config {
22
34
  static load(filePath: string): TestGapConfig;
@@ -17,6 +17,18 @@ interface StarterOptions {
17
17
  name: string;
18
18
  patterns: string[];
19
19
  }>;
20
+ ado?: {
21
+ orgUrl: string;
22
+ project: string;
23
+ planId: number;
24
+ patEnvVar: string;
25
+ };
26
+ csvConfig?: Array<{
27
+ path: string;
28
+ titleField: string;
29
+ dateField?: string;
30
+ stepsField?: string;
31
+ }>;
20
32
  }
21
33
  declare class Config {
22
34
  static load(filePath: string): TestGapConfig;
@@ -2684,12 +2684,28 @@ ${testsSection}
2684
2684
  areas:
2685
2685
  ${areasYaml}
2686
2686
 
2687
- # Optional: Azure DevOps Test Plans integration
2687
+ ${opts.ado ? `ado:
2688
+ orgUrl: ${opts.ado.orgUrl}
2689
+ project: ${opts.ado.project}
2690
+ planId: ${opts.ado.planId}
2691
+ patEnvVar: ${opts.ado.patEnvVar}` : `# Optional: Azure DevOps Test Plans integration
2688
2692
  # ado:
2689
2693
  # orgUrl: https://dev.azure.com/your-org
2690
2694
  # project: YourProject
2691
2695
  # planId: 42
2692
- # patEnvVar: ADO_PAT
2696
+ # patEnvVar: ADO_PAT`}
2697
+
2698
+ ${opts.csvConfig && opts.csvConfig.length > 0 ? `csv:
2699
+ ` + opts.csvConfig.map(
2700
+ (c) => ` - path: ${c.path}
2701
+ titleField: "${c.titleField}"` + (c.dateField ? `
2702
+ dateField: "${c.dateField}"` : "") + (c.stepsField ? `
2703
+ stepsField: "${c.stepsField}"` : "")
2704
+ ).join("\n") : `# Optional: CSV manual test files (qualitylens-pro)
2705
+ # csv:
2706
+ # - path: ./test-cases/regression.csv # path to a specific CSV file
2707
+ # titleField: "Test Name" # column that holds the test title
2708
+ # dateField: "Last Run" # optional: column with last-run date`}
2693
2709
 
2694
2710
  # Optional: manual coverage entries
2695
2711
  # manualCoverage: