Rayrun
← Back to Discord Forum

config's use.trace: "off" doesn't work

I would like to stop generating trace.zip files inside test-results folder. Is there any way to achieve this?

I tried to set trace in config to "off", but it doesn't work and trace files are still created.

This thread is trying to answer question "Is there any way to stop generating trace.zip files inside the test-results folder and to stop creating the 'test-results' folder?"

6 replies
tphillips8117

How are you running the tests?

tphillips8117

is it possible for you to share your config?

I run with: npx playwright test --ui

export default defineConfig({ testDir: './playwright', fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: 'html', use: { trace: 'off', }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], });

tphillips8117

try not running in UI mode From memory UI mode collects traces even if you've got the option turned off

tphillips8117

since you're wanting to see the traces in the UI

yes it is working! It stopped to generate trace.zip files now. But it still creates "test-results" folder, is there any way not to create the folder, or it is needed for playwright to save temporary files localy?

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].