Skip to content

Commit

Permalink
Switch from minitest to tldr
Browse files Browse the repository at this point in the history
3.507s to 0.877s
  • Loading branch information
searls committed Sep 26, 2023
1 parent 57939d1 commit adf3ca6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ source "https://rubygems.org"
gemspec

gem "rake"
gem "minitest"
gem "tldr"
gem "standard"
16 changes: 14 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
attr_extras (7.1.0)
base64 (0.1.1)
concurrent-ruby (1.2.2)
diff-lcs (1.5.0)
json (2.6.3)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
minitest (5.20.0)
optimist (3.1.0)
parallel (1.23.0)
parser (3.2.2.3)
ast (~> 2.4.1)
racc
patience_diff (1.2.0)
optimist (~> 3.0)
racc (1.7.1)
rainbow (3.1.1)
rake (13.0.6)
Expand Down Expand Up @@ -51,17 +56,24 @@ GEM
standard-performance (1.2.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.19.0)
super_diff (0.10.0)
attr_extras (>= 6.2.4)
diff-lcs
patience_diff
tldr (0.2.0)
concurrent-ruby (~> 1.2)
super_diff (~> 0.10)
unicode-display_width (2.4.2)

PLATFORMS
arm64-darwin-20
arm64-darwin-22

DEPENDENCIES
minitest
rake
standard
time_up!
tldr

BUNDLED WITH
2.4.19
10 changes: 2 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
require "bundler/gem_tasks"
require "rake/testtask"
require "standard/rake"
require "tldr/rake"

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end

task default: [:test, "standard:fix"]
task default: [:tldr, "standard:fix"]
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "time_up"

require "minitest/autorun"
require "tldr"
4 changes: 1 addition & 3 deletions test/time_up_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require "test_helper"

class TimeUpTest < Minitest::Test
make_my_diffs_pretty!

class TimeUpTest < TLDR
def teardown
TimeUp.delete_all
end
Expand Down

0 comments on commit adf3ca6

Please sign in to comment.