detroit-minitest 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ = Detroit MiniTest
2
+
3
+ == Overview
4
+
5
+ Detroit MiniTest is a plug-in for the Detroit build tool.
6
+
7
+ The plugin itself is being tested using a top-down approach
8
+ with the QED test framework. Each section represents a
9
+ scenario deemed significant to test.
10
+
@@ -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
+
@@ -0,0 +1,6 @@
1
+ require 'detroit-minitest'
2
+
3
+ When 'Given a test file called "(((.*?)))" containing' do |file, text|
4
+ File.open(file ,'w'){ |f| f << text }
5
+ end
6
+
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: []