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

Update to bats-core v1.7.0 #44

Merged
merged 3 commits into from
Jun 4, 2022
Merged

Update to bats-core v1.7.0 #44

merged 3 commits into from
Jun 4, 2022

Conversation

toolmantim
Copy link
Contributor

Bringing #31 back to life, this updates bats-core to v1.7.0

It introduces a necessary breaking change, renaming BATS_PATH to BATS_PLUGIN_PATH, because BATS_PATH is now used internally by bats.

To update tests:

 #!/usr/bin/env bats
 
-load "$BATS_PATH/load.bash"
+load "$BATS_PLUGIN_PATH/load.bash"

@test "prints some output" {
  run $PWD/hooks/command
  assert_output --partial "some output"
  assert_success
}

@toolmantim toolmantim merged commit 50e71e2 into main Jun 4, 2022
@toolmantim toolmantim deleted the update-to-bats-core-1-7-0 branch June 4, 2022 13:16
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.

1 participant