mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 02:28:30 +08:00
Signed-off-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: 盐粒 Yanli <mail@yanli.one> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: zyssyz123 <916125788@qq.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: 盐粒 Yanli <yanli@dify.ai> Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com>
26 lines
817 B
TypeScript
26 lines
817 B
TypeScript
import type { IConfiguration } from '@cucumber/cucumber'
|
|
import './scripts/env-register'
|
|
|
|
const hasCliTags = process.argv.some(arg => arg === '--tags' || arg.startsWith('--tags='))
|
|
const defaultNonExternalTags = 'not @fresh and not @skip and not @preview and not @external-model and not @external-tool'
|
|
const defaultTags = process.env.E2E_CUCUMBER_TAGS
|
|
|| (hasCliTags ? undefined : defaultNonExternalTags)
|
|
|
|
const config = {
|
|
format: [
|
|
'progress-bar',
|
|
'summary',
|
|
'html:./cucumber-report/report.html',
|
|
'json:./cucumber-report/report.json',
|
|
],
|
|
import: ['./tsx-register.js', 'features/**/*.ts'],
|
|
parallel: 1,
|
|
paths: ['features/**/*.feature'],
|
|
...(defaultTags ? { tags: defaultTags } : {}),
|
|
timeout: 60_000,
|
|
} satisfies Partial<IConfiguration> & {
|
|
timeout: number
|
|
}
|
|
|
|
export default config
|