@democratize-quality/qualitylens-core 0.2.6 → 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.
@@ -23,11 +23,12 @@ interface StarterOptions {
23
23
  planId: number;
24
24
  patEnvVar: string;
25
25
  };
26
- csvConfig?: {
26
+ csvConfig?: Array<{
27
27
  path: string;
28
28
  titleField: string;
29
29
  dateField?: string;
30
- };
30
+ stepsField?: string;
31
+ }>;
31
32
  }
32
33
  declare class Config {
33
34
  static load(filePath: string): TestGapConfig;
@@ -23,11 +23,12 @@ interface StarterOptions {
23
23
  planId: number;
24
24
  patEnvVar: string;
25
25
  };
26
- csvConfig?: {
26
+ csvConfig?: Array<{
27
27
  path: string;
28
28
  titleField: string;
29
29
  dateField?: string;
30
- };
30
+ stepsField?: string;
31
+ }>;
31
32
  }
32
33
  declare class Config {
33
34
  static load(filePath: string): TestGapConfig;
@@ -2695,14 +2695,17 @@ ${opts.ado ? `ado:
2695
2695
  # planId: 42
2696
2696
  # patEnvVar: ADO_PAT`}
2697
2697
 
2698
- ${opts.csvConfig ? `csv:
2699
- path: ${opts.csvConfig.path}
2700
- titleField: "${opts.csvConfig.titleField}"${opts.csvConfig.dateField ? `
2701
- dateField: "${opts.csvConfig.dateField}"` : ""}` : `# Optional: CSV manual test files (qualitylens-pro)
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)
2702
2705
  # csv:
2703
- # path: ./test-cases # folder containing *.csv exports
2704
- # titleField: "Test Name" # column that holds the test title
2705
- # dateField: "Last Run" # optional: column with last-run date`}
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`}
2706
2709
 
2707
2710
  # Optional: manual coverage entries
2708
2711
  # manualCoverage: