Skip to content

Commit

Permalink
add minitest framework
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jul 10, 2024
1 parent 0422f29 commit c24720b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ jobs:
- name: install gems
run: bundle install

- name: test
- name: rspec test
run: bundle exec rake spec

- name: mini test
run: bundle exec rake test
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "minitest/test_task"

RSpec::Core::RakeTask.new(:spec)


Minitest::TestTask.create(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.warning = false
t.test_globs = ["test/**/*_test.rb"]
end

task :default => :spec
1 change: 1 addition & 0 deletions ood_core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "pry", "~> 0.10"
spec.add_development_dependency "timecop", "~> 0.8"
spec.add_development_dependency "climate_control", "~> 1.2.0"
spec.add_development_dependency "minitest", "~> 5"
end

0 comments on commit c24720b

Please sign in to comment.