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

chore: add just test task #583

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Make sure you have the following requirements on your machine:
- [Kurtosis CLI](https://docs.kurtosis.com/install/) installed
- [Foundry](https://book.getfoundry.sh/getting-started/installation) installed
- [Rust & Cargo](https://www.rust-lang.org/tools/install) installed
- [`cargo nextest`](https://nexte.st/)

> [!NOTE]
> The Kurtosis CLI version tested is `0.88.16`. Some issues may arise if you are
Expand Down
10 changes: 10 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
default:
@just --list --unsorted

# run tests in all packages using nextest
test:
@just test-package bolt-cli
@just test-package bolt-boost
@just test-package bolt-sidecar

# run tests in a specific package using nextest
test-package package:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think it's better that just test tests all packages than this, but open for other suggestions on what to call it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want you can have a command for them all!

# Run tests in all packages or a specific package
test package='': 
    @if [[ "{{package}}" == "" ]]; then \
        just test-package bolt-cli; \
        just test-package bolt-boost; \
        just test-package bolt-sidecar; \
    else \
        just test-package {{package}}; \
    fi

Make sure this works, I know it is possible but this is gpt-generated :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty, it worked

cd {{ package }} && cargo nextest run

# lint all packages
lint:
@just clippy bolt-cli
Expand Down
Loading