lookout 2.1.4 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +537 -521
- data/lib/lookout.rb +0 -9
- data/lib/lookout/diff/algorithms/difflib/position.rb +1 -1
- data/lib/lookout/equalities/standarderror.rb +9 -3
- data/lib/lookout/expectations.rb +4 -19
- data/lib/lookout/expectations/line.rb +29 -0
- data/lib/lookout/rake/tasks/gem.rb +2 -2
- data/lib/lookout/rake/tasks/test/loader.rb +14 -11
- data/lib/lookout/results.rb +17 -3
- data/lib/lookout/results/error/exception.rb +1 -3
- data/lib/lookout/results/error/exception/backtrace.rb +17 -8
- data/lib/lookout/results/unsuccessful.rb +1 -7
- data/lib/lookout/runners.rb +1 -0
- data/lib/lookout/runners/console.rb +25 -8
- data/lib/lookout/runners/trackers.rb +5 -0
- data/lib/lookout/runners/trackers/failure.rb +14 -0
- data/lib/lookout/ui/console.rb +6 -33
- data/lib/lookout/ui/silent.rb +1 -1
- data/lib/lookout/version.rb +1 -1
- data/test/unit/lookout.rb +0 -4
- data/test/unit/lookout/expectations.rb +0 -38
- data/test/unit/lookout/expectations/line.rb +29 -0
- data/test/unit/lookout/results/error/exception/backtrace.rb +20 -0
- data/test/unit/lookout/results/unsuccessful.rb +0 -15
- data/test/unit/lookout/runners/trackers/failure.rb +30 -0
- data/test/unit/lookout/ui/{formatters/exception.rb → console.rb} +0 -1
- metadata +397 -408
- data/lib/lookout/results/instance.rb +0 -17
- data/test/unit/lookout/ui/formatters/exception/backtrace.rb +0 -10
@@ -1,17 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
module Lookout::Results::Instance
|
4
|
-
def initialize
|
5
|
-
@listeners = []
|
6
|
-
end
|
7
|
-
|
8
|
-
def on_new(&block)
|
9
|
-
@listeners << block
|
10
|
-
end
|
11
|
-
|
12
|
-
def <<(result)
|
13
|
-
@listeners.each do |listener|
|
14
|
-
listener.call result
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
Expectations do
|
4
|
-
expect [%r{test.*backtrace\.rb}] do
|
5
|
-
results = Lookout::Results::Unsuccessful.new
|
6
|
-
Lookout::Expectations.new(results).expect(1){ raise }
|
7
|
-
Lookout::Results::Error::Exception::Backtrace.
|
8
|
-
new(results.first.exception.exception.backtrace, true).backtrace
|
9
|
-
end
|
10
|
-
end
|