nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.85k stars 1.35k forks source link

4000+ tests eats up disk space *nom* #4160

Open joshua-redmond opened 8 months ago

joshua-redmond commented 8 months ago

Description of the bug/issue

Hi! Here's something I've noticed:

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

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

AbhisekOmkar commented 8 months ago

their is no folder is getting created like /tmp/

joshua-redmond commented 7 months ago

@AbhisekOmkar are you running Ubuntu like me?