nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

4000+ tests eats up disk space *nom*

Open joshua-redmond opened this issue 10 months ago • 2 comments

Description of the bug/issue

Hi! Here's something I've noticed:

Every time a test starts up, Chrome creates two folders under /tmp/:

  • /tmp/.com.google.Chrome.PyT0E2 (empty)
  • /tmp/.org.chromium.Chromium.OBIvvs (aprox 9 megabytes)

Though both folders are left behind when the test shuts down, which eventually eats up all my disk space when running 4000+ tests (4000 * 9mb = 36GB).

This doesn't happen on Nightwatch v1.7.11, (I've just been upgrading).

Steps to reproduce

  1. Run: npm init nightwatch (from https://nightwatchjs.org/guide/quickstarts/create-and-run-a-nightwatch-test.html)
  2. Open your /tmp/ folder.
  3. Run a single test: npx nightwatch ./nightwatch/examples/basic/ecosia.js
    • Also happens with multiple tests: npx nightwatch ./nightwatch/examples
  4. Watch your /tmp/ folder as Chrome creates folders and leaves them behind.

Sample test

No response

Command to run

No response

Verbose Output

No response

Nightwatch Configuration

No response

Nightwatch.js Version

3.5.0

Node Version

20.5.1

Browser

Chrome 123.0.6312.86 (Official Build) (64-bit)

Operating System

Ubuntu 20.04.6 LTS

Additional Information

No response

joshua-redmond avatar Mar 28 '24 22:03 joshua-redmond

their is no folder is getting created like /tmp/

AbhisekOmkar avatar Mar 30 '24 18:03 AbhisekOmkar

@AbhisekOmkar are you running Ubuntu like me?

joshua-redmond avatar Apr 11 '24 04:04 joshua-redmond