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

test: Do not run Nu test if it does not exist #1423

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

hyperupcall
Copy link
Contributor

Summary

This is more automatic compared against SKIP_NUSHELL_TESTS.

@hyperupcall hyperupcall requested a review from a team as a code owner January 6, 2023 09:22

if ! command -v nu; then
skip "Nu is not installed"
fi
Copy link
Member

Choose a reason for hiding this comment

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

Just curious: why did you move this if from the top of the setup function to the bottom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe I wanted to make it clear the the current directory was an invariant with respect to the test file, so moving it to the very top would accomplish that. I think it matches other test files as well

Copy link
Member

@Stratus3D Stratus3D left a comment

Choose a reason for hiding this comment

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

Changes look good to me but I'm going to wait until CI passes to merge.

@Stratus3D Stratus3D merged commit 035e247 into asdf-vm:master Jan 6, 2023
@hyperupcall hyperupcall deleted the fix-nu-test branch January 6, 2023 19:49
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