Skip to content

[refactor] Extract filesystem operations for testing to a dedicate crate #5932

Open
@fdefelici

Description

@fdefelici

When instrumenting tests is common the needs to deal with filesystem operation and make CRUD on files and folders, this has led to code duplication (but also path construction duplicaction. For instance creating abs path starting with /tmp folder)

Some tests also leave the filesystem in a "dirty" state.

Evaluate the opportunity to extract filesystem operation to a dedicated create, eventually centralizing the usage of other thirdparty crate like tempfile (just used in stacks-node) that offer capability to cleanup files and directories after test are compled.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Status: 🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions