Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp files creation #2735

Closed
Lupiano opened this issue Aug 15, 2018 · 5 comments
Closed

Temp files creation #2735

Lupiano opened this issue Aug 15, 2018 · 5 comments
Labels
AREA: server !IMPORTANT! STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: browser natives TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@Lupiano
Copy link

Lupiano commented Aug 15, 2018

Are you requesting a feature or reporting a bug?

Reporting a bug.

What is the current behavior?

On every execution there are temp files created in C:\Users[USER]\AppData\Local\Temp

What is the expected behavior?

Is there a way to automatically delete these files? We run the tests in a VM and it is running out of hd space.

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

Specify your

operating system: Windows 7
testcafe version: 0.20.4
node.js version: 8.11.3

@AndreyBelym AndreyBelym added TYPE: bug The described behavior is considered as wrong (bug). SYSTEM: browser natives AREA: server labels Aug 16, 2018
@AndreyBelym AndreyBelym added this to the Sprint #16 milestone Aug 16, 2018
@AndreyBelym
Copy link
Contributor

Hi @Lupiano! I've reproduced the issue. TestCafe creates temporary directories for Chrome and Firefox profiles for each test session using the tmp module. Looks like the module can't properly remove directories when TestCafe execution is finished. I will fix it ASAP.

@Lupiano
Copy link
Author

Lupiano commented Aug 16, 2018

Great @AndreyBelym! Thanks!

@AndreyBelym
Copy link
Contributor

Hi @Lupiano! The fix is released in [email protected], you can install it with npm i testcafe@latest and try it on your machine.

@Lupiano
Copy link
Author

Lupiano commented Sep 4, 2018

Great @AndreyBelym ! Thank you very much!

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this issue Dec 18, 2019
…, closes DevExpress#2013) (DevExpress#2740)

* Reduce number of created temp dirs for profiles (closes DevExpress#2735)

* Add test

* Remove temp dirs in a separate process

* Fix tests

* Fix remarks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AREA: server !IMPORTANT! STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: browser natives TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

3 participants