Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

[DRAFT] Support tokio::process::command.#223

Draft
nickpdemarco wants to merge 1 commit intoassert-rs:masterassert-rs/assert_cmd:masterfrom
nickpdemarco:nickpdemarco/tokio-commandnickpdemarco/assert_cmd:nickpdemarco/tokio-commandCopy head branch name to clipboard
Draft

[DRAFT] Support tokio::process::command.#223
nickpdemarco wants to merge 1 commit intoassert-rs:masterassert-rs/assert_cmd:masterfrom
nickpdemarco:nickpdemarco/tokio-commandnickpdemarco/assert_cmd:nickpdemarco/tokio-commandCopy head branch name to clipboard

Conversation

@nickpdemarco
Copy link

After hitting this issue I tried to add basic support for tokio::process::command. It requires a new trait, AsyncOutputAssertExt in order to get the following to compile:

    tokio::process::Command::cargo_bin("my-bin")
        .expect("")
        .assert()
        .await
        .success();

I have not yet done the due diligence to confirm this covers all reasonable use cases. Raising this PR for visibility and to ask for some guidance on how to get this production-ready. Documentation TODO.

@nickpdemarco nickpdemarco marked this pull request as draft November 12, 2024 22:51
@epage
Copy link
Contributor

epage commented Nov 13, 2024

According to our contributor guide

Already have an idea? It might be good to first create an issue to propose it so we can make sure we are aligned and lower the risk of having to re-work some of it and the discouragement that goes along with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.