Skip to content

Commit

Permalink
Replaced sus with minitest
Browse files Browse the repository at this point in the history
fixes #39
  • Loading branch information
joelmoss committed Oct 30, 2024
1 parent 95b17c5 commit 5dab2c8
Show file tree
Hide file tree
Showing 46 changed files with 961 additions and 1,139 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
bundler-cache: true
- run: bundle exec rake compile:local
- run: bundle exec sus
- run: bin/test

rubocop:
runs-on: "ubuntu-latest"
Expand Down
8 changes: 6 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require:
- rubocop-packaging
- rubocop-performance
- rubocop-rake
- rubocop-minitest

inherit_mode:
merge:
Expand All @@ -20,8 +21,7 @@ AllCops:

Layout/LineLength:
Max: 100
Exclude:
- "test/**/*"

Metrics/BlockLength:
Enabled: false
Metrics/MethodLength:
Expand All @@ -34,7 +34,11 @@ Metrics/PerceivedComplexity:
Enabled: false
Metrics/ClassLength:
Enabled: false

Style/Documentation:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false

Minitest/EmptyLineBeforeAssertionMethods:
Enabled: false
13 changes: 8 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in proscenium.gemspec
gemspec

gem 'debug'
gem 'rails', '~> 7.0'

group :development do
gem 'benchmark-ips'
gem 'debug'
gem 'puma'
gem 'rubocop'
gem 'rubocop-packaging'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'rubocop-minitest', require: false
gem 'rubocop-packaging', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rake', require: false
gem 'sqlite3'
gem 'web-console'

Expand All @@ -33,7 +34,9 @@ group :test do
gem 'gem2', path: './fixtures/external/gem2'
gem 'gem3', path: './fixtures/dummy/vendor/gem3'
gem 'gem4', path: './fixtures/external/gem4'
gem 'maxitest'
gem 'minitest-focus'
gem 'minitest-spec-rails'
gem 'phlex-testing-capybara'
gem 'sus'
gem 'view_component', '~> 3.6.0'
end
24 changes: 18 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ GEM
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.4)
json (2.7.5)
language_server-protocol (3.17.0.3)
logger (1.6.1)
loofah (2.23.1)
Expand All @@ -184,9 +184,16 @@ GEM
net-smtp
marcel (1.0.4)
matrix (0.4.2)
maxitest (5.7.1)
minitest (>= 5.14.0, < 5.26.0)
method_source (1.1.0)
mini_mime (1.1.5)
minitest (5.25.1)
minitest-focus (1.4.0)
minitest (>= 4, < 6)
minitest-spec-rails (7.3.0)
minitest (>= 5.0)
railties (>= 4.1)
net-imap (0.5.0)
date
net-protocol
Expand Down Expand Up @@ -284,6 +291,9 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.33.0)
parser (>= 3.3.1.0)
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.22.1)
Expand All @@ -302,10 +312,9 @@ GEM
parser (>= 3.0.3.1)
ruby-progressbar (1.13.0)
securerandom (0.3.1)
sqlite3 (2.1.1-arm64-darwin)
sqlite3 (2.1.1-x86_64-linux-gnu)
sqlite3 (2.2.0-arm64-darwin)
sqlite3 (2.2.0-x86_64-linux-gnu)
stringio (3.1.1)
sus (0.31.0)
thor (1.3.2)
timeout (0.4.1)
tzinfo (2.0.6)
Expand Down Expand Up @@ -351,20 +360,23 @@ DEPENDENCIES
gem3!
gem4!
htmlbeautifier
maxitest
minitest-focus
minitest-spec-rails
phlex-testing-capybara
phlexible
proscenium!
puma
rails (~> 7.0)
rouge
rubocop
rubocop-minitest
rubocop-packaging
rubocop-performance
rubocop-rake
sqlite3
sus
view_component (~> 3.6.0)
web-console

BUNDLED WITH
2.4.1
2.5.22
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ bundle exec rake compile:local
We have tests for both Ruby and Go. To run the Ruby tests:

```bash
bundle exec sus
bin/test
```

To run the Go tests:
Expand Down
13 changes: 1 addition & 12 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
# frozen_string_literal: true

require 'bundler/setup'
require 'bundler/gem_tasks'

APP_RAKEFILE = File.expand_path('playground/Rakefile', __dir__)
load 'rails/tasks/engine.rake'

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'

Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
t.warning = false
end

RuboCop::RakeTask.new
CLOBBER.include 'pkg'

task default: %i[test rubocop]
Expand Down
27 changes: 0 additions & 27 deletions bin/sus

This file was deleted.

27 changes: 0 additions & 27 deletions bin/sus-host

This file was deleted.

27 changes: 0 additions & 27 deletions bin/sus-parallel

This file was deleted.

27 changes: 0 additions & 27 deletions bin/sus-tree

This file was deleted.

5 changes: 5 additions & 0 deletions bin/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env ruby
$: << File.expand_path("../test", __dir__)

require "bundler/setup"
require "rails/plugin/test"
10 changes: 0 additions & 10 deletions config/sus.rb

This file was deleted.

25 changes: 0 additions & 25 deletions config/sus/include.rb

This file was deleted.

5 changes: 0 additions & 5 deletions fixtures/file_path/module.rb

This file was deleted.

13 changes: 0 additions & 13 deletions fixtures/fixtures.rb

This file was deleted.

44 changes: 0 additions & 44 deletions fixtures/system_testing.rb

This file was deleted.

Loading

0 comments on commit 5dab2c8

Please sign in to comment.