Enhance CI configuration and documentation; add new action palette adapter
Some checks failed
CI / validate (push) Has been cancelled
Some checks failed
CI / validate (push) Has been cancelled
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { createWdioCucumberAdapter } from '@qacg/qk-test-analytics/adapters/wdio-cucumber';
|
||||
import { loadQkforceRunConfig } from './test/support/qkforce-config.mjs';
|
||||
import { loadQkforceTestData } from './test/support/qkforce-test-data.mjs';
|
||||
import { loadGeneratedWorkspace } from './test/support/qkforce-generated.mjs';
|
||||
|
||||
const qkforce = loadQkforceRunConfig();
|
||||
loadQkforceTestData();
|
||||
const generated = loadGeneratedWorkspace();
|
||||
|
||||
const analytics = createWdioCucumberAdapter({
|
||||
capture: 'on-failure',
|
||||
@@ -13,7 +15,7 @@ const analytics = createWdioCucumberAdapter({
|
||||
export const config: WebdriverIO.Config = {
|
||||
runner: 'local',
|
||||
tsConfigPath: './tsconfig.json',
|
||||
specs: ['./test/features/**/*.feature'],
|
||||
specs: generated?.specs ?? ['./test/features/**/*.feature'],
|
||||
maxInstances: 1,
|
||||
capabilities: [{ browserName: 'chrome', 'goog:chromeOptions': { args: ['--headless=new','--disable-gpu','--no-sandbox','--window-size=1440,900'] } }],
|
||||
logLevel: 'error',
|
||||
@@ -23,6 +25,6 @@ export const config: WebdriverIO.Config = {
|
||||
connectionRetryCount: 3,
|
||||
framework: 'cucumber',
|
||||
reporters: ['spec'],
|
||||
cucumberOpts: { import: ['./test/step-definitions/**/*.ts'], language: 'en', timeout: 60_000, retry: 0, failFast: false, strict: true },
|
||||
cucumberOpts: { import: generated?.imports ?? ['./test/step-definitions/**/*.ts'], language: 'en', timeout: 60_000, retry: 0, failFast: false, strict: true },
|
||||
...analytics.hooks
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user