Skip to content

Add default_current_dir() function to trycmd::cases::TestCases to specify CWD #440

@ariasuni

Description

@ariasuni

It doesn’t seem to be possible to set the CWD programmatically, like with e.g. std::process::Command in the stdlib.

My use case is that I want to handle fs operations myself (since I need to do some specific stuff with creation/modification/etc. dates, creating git repos, setting extended attributes on files, etc.), and set the CWD once for a group of tests instead of in every TOML file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trycmdArea: trycmd packageenhancementImprove the expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions