We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eb783e commit 818a634Copy full SHA for 818a634
bin/test
@@ -1,13 +1,23 @@
1
#!/usr/bin/env ruby
2
3
+results = { 'Rubocop' => false, 'RSpec' => false, 'ESLint' => false, 'Jest' => false }
4
puts "\n== Running linters =="
5
puts 'Rubocop:'
-system 'bundle exec rubocop'
6
+results['Rubocop'] = system 'bundle exec rubocop'
7
+
8
puts 'ESlint:'
-system 'yarn eslint'
9
+results['ESLint'] = system 'yarn eslint'
10
11
puts "\n== Running specs =="
12
puts 'Rspec:'
-system 'bundle exec rspec'
13
+results['RSpec'] = system 'bundle exec rspec'
14
puts 'Jest:'
-system 'yarn test'
15
+results['Jest'] = system 'yarn test'
16
17
+puts "\n== Final Results =="
18
+puts results.map {|k,v| "#{k.ljust(7)} #{v == true ? '✅' : '❌' }" }
19
+if results.values.all? { |v| v == true }
20
+ puts 'All tests passing! 🎉'
21
+else
22
+ puts 'Failing tests! 😭'
23
+end
0 commit comments