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

Use cargo-nextest #64

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[net]
git-fetch-with-cli = true

[alias] # command aliases
t = "nextest run"
Odonno marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ jobs:
- name: Run check
run: cargo check --all

- name: Run tests
run: cargo test
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest

- name: Perform tests
continue-on-error: false
run: cargo nextest run
- name: Run format
run: |
cargo check --all
Expand Down
12 changes: 12 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env -S just --justfile
Odonno marked this conversation as resolved.
Show resolved Hide resolved
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
set dotenv-load := true
export CARGO_TERM_COLOR := "always"

# Show available commands
default:
@just --list --justfile {{justfile()}}

# Run tests using cargo test
test:
cargo nextest run