mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Merge pull request #19587 from storybookjs/tech/html-reporter-for-e2e-tests-locally
make the reporter dynamic
This commit is contained in:
commit
8d95548ac4
@ -10,8 +10,10 @@ export const e2eTests: Task = {
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
async run({ codeDir, junitFilename, template }, { dryRun, debug }) {
|
async run({ codeDir, junitFilename, template }, { dryRun, debug }) {
|
||||||
|
const reporter = process.env.CI ? 'junit' : 'html';
|
||||||
|
|
||||||
await exec(
|
await exec(
|
||||||
'yarn playwright test --reporter=junit',
|
`yarn playwright test --reporter=${reporter}`,
|
||||||
{
|
{
|
||||||
env: {
|
env: {
|
||||||
STORYBOOK_URL: `http://localhost:${PORT}`,
|
STORYBOOK_URL: `http://localhost:${PORT}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user