-
Notifications
You must be signed in to change notification settings - Fork 16
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
Move test helpers from tests/template.bats to lib/ #186
Comments
This is one of the functions listed #186 as a candidate for migration from `tests/template.bats`. I realized it would be helpful to have this function while migrating the assertions from `tests/scripts/serve.bats` in mbland/custom-links per #181. This commit contains two additional changes: It removes the `--in-process` option from `stub_program_in_path`. It turns out I wasn't using that option anywhere, and I couldn't make any tests fail because it didn't have an effect anyway, since the `run` function from Bats always launches its arguments in a new subshell. `restore_program_in_path` now strips `BATS_TEST_BINDIR` from the beginning of `PATH`.
Part of #186. Extracted from `test/template.bats`.
Part of #186. Prerequisite for the upcoming `@go.create_gzipped_tarball` in the upcoming `lib/archive`.
Part of #186. Throws in the kitchen sink when it comes to sanity checks and portability.
This will get closed by #211. As noted above by the issues linked to this thread, But of the remaining helpers, |
Add @go.create_gzipped_tarball and perform other small refactors
At least some of the test helpers from tests/template.bats in v1.6.0 should be migrated to
lib/
.These will certainly be migrated to
lib/bats/helpers
:skip_if_none_present_on_system
git_for_windows_native_path
create_forwarding_script
These may contain useful bits worth extracting, though migration isn't yet certain:
assert_go_core_unpacked
create_fake_tarball_if_not_using_real_url
run_with_download_program
The text was updated successfully, but these errors were encountered: