mynyml-phocus 0.9.9 → 1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README +9 -23
  2. data/Rakefile +1 -1
  3. data/TODO +14 -17
  4. data/phocus.gemspec +2 -2
  5. metadata +2 -2
data/README CHANGED
@@ -1,26 +1,29 @@
1
- ==== Intro
1
+ ==== Summary
2
2
 
3
3
  Phocus let's you temporarily focus some tests, ignoring all others, even across test classes.
4
4
 
5
- ===== Features
5
+
6
+ ==== Features
6
7
 
7
8
  * Ultra simple to use
8
9
  * Works accross testcase classes
9
10
  * Works within contexts
10
11
  * Can focus multiple tests
11
12
  * Simple code (< 50 LOCs)
12
- * Compatible with at least 5 different testing frameworks
13
+ * Compatible with various testing frameworks
14
+
13
15
 
14
16
  ==== Examples
15
17
 
16
18
  require 'test/unit'
19
+ require 'rubygems'
17
20
  require 'phocus'
18
21
 
19
22
  class TestUser < Test::Unit::TestCase
20
23
 
21
24
  focus
22
25
  def test_foo
23
- assert User.authenticate('...')
26
+ assert User.do_something
24
27
  end
25
28
 
26
29
  def test_bar
@@ -50,25 +53,6 @@ Also works fine with <tt>test "description"</tt> style tests.
50
53
  assert true
51
54
  end
52
55
 
53
- ==== Phocus Vs. Editor
54
-
55
- "Dude, MY editor already does that! Just get a real editor!!"
56
-
57
- Actually, so does my editor. But I've found that in many situations, it was far
58
- from enough.
59
-
60
- Contexts:
61
- Some frameworks like shoulda, context and contest allow you to embed tests
62
- within context blocks, which throws off the editor's "run a single test"
63
- functionality, since they expand the test method names.
64
-
65
- Debugging:
66
- Some editors will even allow you to step into the code when using
67
- <tt>debugger</tt> within that single test, but it's usually not as convenient
68
- as the console.
69
-
70
- Multiple Tests:
71
- Phocus allows focusing more than one tests.
72
56
 
73
57
  ==== Testing Framework Compatibility
74
58
 
@@ -84,10 +68,12 @@ It is possibly compatible out of the box with other test/unit-based testing
84
68
  frameworks as well, but it should be fairly easy to set up if it isn't (include
85
69
  Phocus in parent testcase class and set proper method_pattern. See rdocs)
86
70
 
71
+
87
72
  ==== Links
88
73
 
89
74
  source:: http://github.com/mynyml/phocus
90
75
  rdocs:: http://docs.github.com/mynyml/phocus
91
76
 
77
+
92
78
  ==== License
93
79
  MIT. See LICENSE file.
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  spec = Gem::Specification.new do |s|
24
24
  s.name = 'phocus'
25
- s.version = '0.9.9'
25
+ s.version = '1.0'
26
26
  s.summary = "Run focused tests on test/unit."
27
27
  s.description = "Tell test/unit exactly which tests you want run. It will ignore all the other ones and let you concentrate on a few."
28
28
  s.author = "Martin Aumont"
data/TODO CHANGED
@@ -1,20 +1,17 @@
1
- o test (implement?) compatibility with test/unit plugins
2
- x test/unit
3
- x minitest
4
- x context
5
- x shoulda
6
- x contest
7
- o test/spec
1
+ o compatibility
2
+ o with test/unit plugins
3
+ x test/unit
4
+ x minitest
5
+ x context
6
+ x shoulda
7
+ x contest
8
+ o test/spec
8
9
  ...
10
+ o Rails
9
11
 
10
- x add docs
11
- - rdocs, README
12
+ o focus a group of tests at once
12
13
 
13
- o focus do
14
- ...
15
- ...
16
- end
17
-
18
- to focus a group of tests at once
19
-
20
- x autodetect test framework; simply use `require 'phocus'`
14
+ focus do
15
+ ...
16
+ ...
17
+ end
data/phocus.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phocus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: "1.0"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Aumont
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-10 00:00:00 -04:00
12
+ date: 2009-06-11 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mynyml-phocus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: "1.0"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Aumont
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-09 21:00:00 -07:00
12
+ date: 2009-06-10 21:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15