webdriverio-community / wdio-testrail-reporter

MIT License
6 stars 9 forks source link

Package creating multiple test runs when using cucumber #370

Open liamharries opened 3 months ago

liamharries commented 3 months ago

I have the oneReport setting set to true however this still results in one test run created per feature file.

Am I misconfigured or is this a bug?

import { config as sharedConfig } from './wdio.conf.ts';

export const config: WebdriverIO.Config = {
    ...sharedConfig,     
    capabilities: [
        {
          browserName: "chrome",
          'goog:chromeOptions': {
            args: ['headless', 'disable-gpu']
        }
        },
      ],
      reporters:[
        "spec",
        // "json", // uncomment to place json in the console output for entire run
        "cucumberjs-json",
        [
          'testrail',
          {
            projectId: 36,
            suiteId: 1, // invalid suite generates a run
            domain: 'company.testrail.io',
            username: 'liam.harries@company.com',
            apiToken: 'TOKEN', 
            runName: `foo-web-qa ${new Date()}`,
            oneReport: true,
            includeAll: true,
            useCucumber: true,
            caseIdTagPrefix: 'C', // used only for multi-platform Cucumber Scenarios
          },
        ],
      ]
}
christian-bromann commented 2 months ago

Thanks for reporting, any contributions would be appreciated.