-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilize new Gemwork dependencies + test support
This simplifies definition and update of gem dependencies and utilization of test/test_helper.rb support/requires.
- Loading branch information
Showing
4 changed files
with
21 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Recompile and install Gemwork locally. | ||
if [ -n "$REBUILD_GEMWORK" ]; then | ||
( cd ~/dev/gemwork && bin/setup && rake install:local ) | ||
fi | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
set -vx | ||
|
||
bundle install | ||
|
||
# Do any other automated setup that you need to do here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
require "simplecov" | ||
SimpleCov.start do | ||
add_filter "/bin/" | ||
add_filter "/test/" | ||
end | ||
puts "SimpleCov enabled." | ||
require "gemwork/test/support/simplecov" | ||
|
||
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) | ||
require "object_identifier" | ||
|
||
require "minitest/autorun" | ||
require "minitest/reporters" | ||
require "pry" | ||
|
||
require "much-stub" | ||
|
||
Minitest::Test.make_my_diffs_pretty! | ||
reporter_options = { color: true } | ||
Minitest::Reporters.use!( | ||
Minitest::Reporters::DefaultReporter.new(reporter_options)) | ||
|
||
def context(...) | ||
describe(...) | ||
end | ||
|
||
class Minitest::Spec | ||
after do | ||
MuchStub.unstub! | ||
end | ||
end | ||
require "gemwork/test/support/reporters" | ||
require "gemwork/test/support/much_stub" | ||
require "gemwork/test/support/spec_dsl" |