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

combing with nextest #341

Open
TyberiusPrime opened this issue Jan 16, 2025 · 0 comments
Open

combing with nextest #341

TyberiusPrime opened this issue Jan 16, 2025 · 0 comments

Comments

@TyberiusPrime
Copy link

Hi,

I'd like to replace 'cargo test' with 'cargo nextest'.

Unfortunately, when I set cargoTestCommands: old: [''cargo $cargo_options nexttest $cargo_test_options'',
(and add a failing test case for visibility) and set mode = "test", it will first run 'cargo test' in the buildPhase,
before even getting to the checkPhase.

I got it running just my nextest with

        nativeBuildInputs = with pkgs; [cargo-nextest];
        cargoTestCommands = old: ["cargo nextest run $cargo_test_options"];
        override = {
          buildPhase = ":";
        };
        doCheck = true;

But it wasn't quite obvious, so I'm dropping this issue for the next person to find.

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

No branches or pull requests

1 participant