File: sus

package info (click to toggle)
ruby-sus 0.35.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 380 kB
  • sloc: ruby: 2,844; makefile: 4
file content (26 lines) | stat: -rwxr-xr-x 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative "../lib/sus/config"
config = Sus::Config.load

require_relative "../lib/sus"
registry = config.registry

if config.verbose?
	output = config.output
	verbose = true
else
	output = Sus::Output::Null.new
	verbose = false
end

assertions = Sus::Assertions.default(output: output, verbose: verbose)

config.before_tests(assertions)
registry.call(assertions)
config.after_tests(assertions)

unless assertions.passed?
	exit(1)
end