detroit-minitest 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +143 -0
- data/.gitignore +7 -0
- data/.ruby +30 -0
- data/Assembly +39 -0
- data/COPYING.rdoc +21 -0
- data/GPL3.txt +674 -0
- data/Profile +23 -0
- data/README.rdoc +21 -0
- data/lib/detroit-minitest.rb +127 -0
- data/man/detroit-minitest.5 +71 -0
- data/man/detroit-minitest.5.html +137 -0
- data/man/detroit-minitest.5.ronn +58 -0
- data/site/index.html +137 -0
- data/spec/01_overview.rdoc +10 -0
- data/spec/02_break_on_failure.rdoc +25 -0
- data/spec/applique/rules.rb +6 -0
- metadata +65 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
== Break On Failure
|
2
|
+
|
3
|
+
The Detroit test service should terminate when tests fail.
|
4
|
+
|
5
|
+
Given a test file called "test_example.rb" containing:
|
6
|
+
|
7
|
+
class TestFailure < MiniTest::Unit::TestCase
|
8
|
+
def test_failure
|
9
|
+
assert(1 == 2)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
We can demonstrate this feature of the Detroit MiniTest plug-in via code.
|
14
|
+
|
15
|
+
tester = Detroit::MiniTest.new(:tests=>['test_example.rb'])
|
16
|
+
|
17
|
+
Since the test has an assertion failure, running the tests
|
18
|
+
should cause execution to abort.
|
19
|
+
|
20
|
+
expect SystemExit do
|
21
|
+
silently {
|
22
|
+
tester.test
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: detroit-minitest
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Thomas Sawyer
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-19 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: MiniTest plugin for Detroit build system, will run MiniTest-bases tests
|
15
|
+
during standard test phase. Can also be used as a stand-alone tool in Ruby scripts.
|
16
|
+
email:
|
17
|
+
- transfire@gmail.com
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files:
|
21
|
+
- GPL3.txt
|
22
|
+
- README.rdoc
|
23
|
+
- COPYING.rdoc
|
24
|
+
files:
|
25
|
+
- .gemspec
|
26
|
+
- .gitignore
|
27
|
+
- .ruby
|
28
|
+
- Assembly
|
29
|
+
- COPYING.rdoc
|
30
|
+
- GPL3.txt
|
31
|
+
- Profile
|
32
|
+
- README.rdoc
|
33
|
+
- lib/detroit-minitest.rb
|
34
|
+
- man/detroit-minitest.5
|
35
|
+
- man/detroit-minitest.5.html
|
36
|
+
- man/detroit-minitest.5.ronn
|
37
|
+
- site/index.html
|
38
|
+
- spec/01_overview.rdoc
|
39
|
+
- spec/02_break_on_failure.rdoc
|
40
|
+
- spec/applique/rules.rb
|
41
|
+
homepage: http://detroit.github.com/
|
42
|
+
licenses: []
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
requirements: []
|
60
|
+
rubyforge_project:
|
61
|
+
rubygems_version: 1.8.5
|
62
|
+
signing_key:
|
63
|
+
specification_version: 3
|
64
|
+
summary: MiniTest plugin for Detroit
|
65
|
+
test_files: []
|