Skip to content

Conversation

mbland
Copy link
Owner

@mbland mbland commented Jan 19, 2017

This is a collection of three small changes I want to merge before a more substantial change to extract lib/bats-main in the next PR:

  • Previously, if no modules had been stubbed, @go.restore_stubbed_core_modules would
    try to remove the glob pattern itself, resulting in an error message. Now it's a no-op if nothing's been stubbed.
  • Updated lib/kcov-ubuntu to use the new @go get git-repo from Add skip_if_system_missing Bats helper, new get builtin #114.
  • Replaced run env VAR=foo with VAR=foo run everywhere. Don't notice much of a performance impact on macOS, but it's more consistent with my more recent style and should save a process, which might make more of an impact on Windows.

If no modules had been stubbed, `@go.restore_stubbed_core_modules` would
try to remove the glob pattern itself, resulting in an error message.
Realized a while back that `VAR=foo run "$TEST_GO_SCRIPT"` works just as
well as `run env VAR=foo "$TEST_GO_SCRIPT"` and is probably preferable
as it saves a process. Don't notice much of an impact on macOS, but hope
it improves Windows runs slightly.
@mbland mbland added this to the v1.4.0 milestone Jan 19, 2017
@mbland mbland self-assigned this Jan 19, 2017
In addition to eliminating an array by passing arguments directly to
`assert_lines_match`, I also realized it's best to replace the hardcoded
`master` reference with `__KCOV_VERSION`.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 95.299% when pulling c38fb1f on tweaks into 2c4f9c0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 95.299% when pulling 00925fe on tweaks into 2c4f9c0 on master.

@mbland mbland merged commit c92d0e3 into master Jan 19, 2017
@mbland mbland deleted the tweaks branch January 19, 2017 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants