From 80928bd007cdceedbaf093e80925410713c7d923 Mon Sep 17 00:00:00 2001 From: Yevhenii Babichenko Date: Fri, 15 Nov 2024 20:57:06 +0200 Subject: [PATCH] get rid of nextest --- .github/workflows/tests.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a883dbd..440dea6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -51,18 +51,16 @@ jobs: run: sudo apt-get install -y zsh fish - name: Install coverage tools - run: | - rustup component add llvm-tools - curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin + run: rustup component add llvm-tools - name: Run tests - run: cargo nextest run + run: cargo test - name: Generate coverage report run: | toolchain="$(grep '^default_toolchain' ~/.rustup/settings.toml | cut -d'"' -f2)" PATH="$HOME/.rustup/toolchains/$toolchain/lib/rustlib/${toolchain#*-}/bin:$PATH" - BINARIES="$(cargo nextest list --list-type binaries-only --message-format json | jq -r '.["rust-binaries"] | .[] | "--object \(.["binary-path"])"' | tr '\n' ' ')" + BINARIES="$(cargo test --no-run --message-format=json | jq -rj 'select(.profile.test == true) | .filenames[] | "--object " + .')" ARGS="-instr-profile fixit.profdata $BINARIES --object $PWD/target/debug/fixit" llvm-profdata merge -sparse default_*.profraw -o fixit.profdata llvm-cov report --use-color --ignore-filename-regex='/.cargo/registry' $ARGS