tconsole 1.0.0.pre.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -4
- data/lib/tconsole/version.rb +1 -1
- data/tconsole.gemspec +3 -2
- metadata +14 -8
data/README.md
CHANGED
@@ -6,7 +6,7 @@ concerning what tests to run, and see their test output. It's also got a
|
|
6
6
|
helpful reload command for when your Rails environment needs to be
|
7
7
|
restarted.
|
8
8
|
|
9
|
-
tconsole has only been tested with Rails 3 with Ruby 1.9.3 with MiniTest as the testing framework (the Rails default) on a Mac
|
9
|
+
tconsole has only been tested with Rails 3 with Ruby 1.9.3 with MiniTest as the testing framework (the Rails default) on a Mac, but in theory it should work with pretty much any Unixy operating system (tconsole uses fork a good bit).
|
10
10
|
|
11
11
|
Why use tconsole?
|
12
12
|
------
|
@@ -16,11 +16,19 @@ Why use tconsole?
|
|
16
16
|
|
17
17
|
What about Spork?
|
18
18
|
------
|
19
|
-
Spork's really cool, but I've always felt like
|
19
|
+
Spork's really cool, and it was my primary motivation behind writing tconsole, but I've always felt like having an extra console open for my spork server and another to run my commands is a bit heavy for what I want to do. Beyond that, I couldn't ever figure out how to get Spork to work with test/unit, and since me and DHH are the only two people who still use test/unit I figured it was up to me to come up with something that worked great. If Spork's your cup of tea, though, stop reading this and use what you like.
|
20
|
+
|
21
|
+
What about rspec?
|
22
|
+
------
|
23
|
+
I'm not sure if tconsole will ever support rspec or not. I love the idea
|
24
|
+
of adding support for rspec, but I also don't use rspec all that often,
|
25
|
+
so it likely wouldn't be very well tested. If enough people fuss at me,
|
26
|
+
or if someone were willing to add and maintain rspec support I'd definitely be
|
27
|
+
willing to merge it in, though.
|
20
28
|
|
21
29
|
Installing tconsole
|
22
30
|
------
|
23
|
-
gem install tconsole
|
31
|
+
gem install tconsole
|
24
32
|
|
25
33
|
How to use tconsole
|
26
34
|
------
|
@@ -63,6 +71,15 @@ If you want to focus in on a particular subset of your tests, like units, functi
|
|
63
71
|
You can also focus in on just the tests in a given filename by entering a test file name into tconsole:
|
64
72
|
|
65
73
|
> test/unit/user_test.rb
|
74
|
+
|
75
|
+
You can go one bit deeper and just run a particular test in that file
|
76
|
+
with an extra argument:
|
77
|
+
|
78
|
+
> test/unit/user_test.rb test_that_user_is_healthy
|
79
|
+
|
80
|
+
That command will load up the user_test.rb file and then only run the
|
81
|
+
test named test_that_user_is_healthy. You can add a specific test name
|
82
|
+
argument to any tconsole command that runs tests.
|
66
83
|
|
67
84
|
If you update your environment, maybe by editing your Gemfile or changing one of your application's configuration files, you can use the `reload` command to reload the entire environment:
|
68
85
|
|
@@ -75,6 +92,6 @@ And then finally, you can run the `exit` command to quit:
|
|
75
92
|
Reporting Issues and Contributing
|
76
93
|
------
|
77
94
|
|
78
|
-
Feel free to report issues in the issue tracker at https://github.com/commondream/tconsole/issues. For bonus points, fork the project and send me a pull request with the fix for the issue you're seeing.
|
95
|
+
Feel free to report issues in the issue tracker at https://github.com/commondream/tconsole/issues. Be sure to include the versions of Ruby, Rails, and your operating system. For bonus points, fork the project and send me a pull request with the fix for the issue you're seeing.
|
79
96
|
|
80
97
|
tconsole is just a quick idea I had that I wanted to spike out, so there aren't any tests yet. Hopefully that will change in the near future!
|
data/lib/tconsole/version.rb
CHANGED
data/tconsole.gemspec
CHANGED
@@ -8,8 +8,9 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["Alan Johnson"]
|
9
9
|
s.email = ["alan@commondream.net"]
|
10
10
|
s.homepage = ""
|
11
|
-
s.summary = %q{tconsole
|
12
|
-
s.description = %q{tconsole
|
11
|
+
s.summary = %q{tconsole is a helpful console for running Rails tests}
|
12
|
+
s.description = %q{tconsole allows Rails developers to easily and quickly run their tests as a whole or in subsets. It forks the testing processes from
|
13
|
+
a preloaded test environment to ensure that developers don't have to reload their entire Rails environment between test runs.}
|
13
14
|
|
14
15
|
s.rubyforge_project = "tconsole"
|
15
16
|
|
metadata
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tconsole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Alan Johnson
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: tconsole
|
14
|
+
description: ! "tconsole allows Rails developers to easily and quickly run their tests
|
15
|
+
as a whole or in subsets. It forks the testing processes from\n a
|
16
|
+
preloaded test environment to ensure that developers don't have to reload their
|
17
|
+
entire Rails environment between test runs."
|
15
18
|
email:
|
16
19
|
- alan@commondream.net
|
17
20
|
executables:
|
@@ -44,17 +47,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
47
|
version: '0'
|
45
48
|
segments:
|
46
49
|
- 0
|
47
|
-
hash:
|
50
|
+
hash: -2344529905769875975
|
48
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
52
|
none: false
|
50
53
|
requirements:
|
51
|
-
- - ! '
|
54
|
+
- - ! '>='
|
52
55
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
56
|
+
version: '0'
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
hash: -2344529905769875975
|
54
60
|
requirements: []
|
55
61
|
rubyforge_project: tconsole
|
56
62
|
rubygems_version: 1.8.11
|
57
63
|
signing_key:
|
58
64
|
specification_version: 3
|
59
|
-
summary: tconsole
|
65
|
+
summary: tconsole is a helpful console for running Rails tests
|
60
66
|
test_files: []
|