keeptesting 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -6
- data/lib/keeptesting/version.rb +1 -1
- data/todo.org +2 -0
- data/webconsole.rb +3 -3
- metadata +16 -16
data/README.md
CHANGED
@@ -9,22 +9,40 @@ Run it from the command line. Specify 1) how tests are launched and 2)
|
|
9
9
|
how a failed test looks in the terminal.
|
10
10
|
|
11
11
|
The tests will run on every file change in your project - results are
|
12
|
-
fed back through a pretty html console.
|
12
|
+
fed back through a pretty html console, or on the commandline.
|
13
13
|
|
14
14
|
USAGE:
|
15
15
|
======
|
16
16
|
|
17
|
-
`keeptesting [options] -
|
17
|
+
`keeptesting [options] 'FAILURE-MATCHING-REGEX' 'TEST-COMMAND'`
|
18
18
|
|
19
|
-
|
19
|
+
Run tests whenever files change in the current directory or subdirectories.
|
20
|
+
|
21
|
+
Spits back indication of test success or failure, based on specified regex
|
22
|
+
that detects errors/failures in the output of a test run.
|
23
|
+
Starts embedded webserver by default, letting you see test feedback in browser
|
24
|
+
window. Can also run in the command line.
|
25
|
+
|
26
|
+
If you have a .keeptesting dotfile present, you can just type 'keeptesting' to
|
27
|
+
run with the options, error detection and test command etc specified in
|
28
|
+
the dotfile.
|
29
|
+
|
30
|
+
Note: Be sure to use quotes around params like the examples!
|
31
|
+
|
32
|
+
* `-c, --command-line-mode` - Commandline mode
|
33
|
+
* `-p, --watched-path` - Path to watch for changes
|
34
|
+
* `-d, --store-dotfile` - Save current keeptesting config in dotfile
|
35
|
+
* `-h, --help` - Display usage
|
36
|
+
* `-v, --version` - Display version number
|
20
37
|
|
21
38
|
|
22
39
|
EXAMPLES:
|
23
40
|
======
|
24
41
|
|
25
|
-
|
26
|
-
|
27
|
-
|
42
|
+
*`keeptesting 'Error|Failure' 'rake test'` - Run tests whenever anything changes
|
43
|
+
*`keeptesting -p 'test' -p 'lib' 'Error|Failure' 'rake test'`- Test on changes in test/ or lib/
|
44
|
+
*`keeptesting -d 'Error|Failure' 'rake test'`- Store current config in .keeptesting
|
45
|
+
*`keeptesting` - Run using .keeptesting config file
|
28
46
|
|
29
47
|
|
30
48
|
PREREQUISITES:
|
data/lib/keeptesting/version.rb
CHANGED
data/todo.org
CHANGED
@@ -4,10 +4,12 @@
|
|
4
4
|
** show error when backend is down
|
5
5
|
** prettier html output
|
6
6
|
** less chatty communication w. server, use websockets?
|
7
|
+
** show yellow/working feedback (need websocket/push for this)
|
7
8
|
* test that everything works x-platform
|
8
9
|
* create proper documentation
|
9
10
|
** website
|
10
11
|
** great readme page with screencaptures and workflow examples
|
11
12
|
** screencast
|
12
13
|
** blog post - release announcement
|
14
|
+
* final code cleanup
|
13
15
|
* release 1.0
|
data/webconsole.rb
CHANGED
@@ -25,10 +25,10 @@ def index
|
|
25
25
|
|
26
26
|
<style>
|
27
27
|
.red {
|
28
|
-
background-color:
|
28
|
+
background-color: #FF3B3B;
|
29
29
|
}
|
30
30
|
.green {
|
31
|
-
background-color:
|
31
|
+
background-color: #3BFF3E;
|
32
32
|
}
|
33
33
|
</style>
|
34
34
|
|
@@ -77,7 +77,7 @@ var showLastTest = function(){
|
|
77
77
|
};
|
78
78
|
|
79
79
|
$(document).ready(function(){
|
80
|
-
setInterval(showLastTest,
|
80
|
+
setInterval(showLastTest, 300);
|
81
81
|
});
|
82
82
|
JAVASCRIPT
|
83
83
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keeptesting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: OptionParser
|
16
|
-
requirement: &
|
16
|
+
requirement: &8653180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *8653180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fssm
|
27
|
-
requirement: &
|
27
|
+
requirement: &8652640 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *8652640
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sinatra
|
38
|
-
requirement: &
|
38
|
+
requirement: &8652100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *8652100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: mocha
|
49
|
-
requirement: &
|
49
|
+
requirement: &8651620 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *8651620
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: shoulda
|
60
|
-
requirement: &
|
60
|
+
requirement: &8648960 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *8648960
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
|
-
requirement: &
|
71
|
+
requirement: &8648500 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *8648500
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: shoulda-context
|
82
|
-
requirement: &
|
82
|
+
requirement: &8648040 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *8648040
|
91
91
|
description: ! 'Usage: keeptesting [options] TESTCOMMAND'
|
92
92
|
email:
|
93
93
|
- thomas@kjeldahlnilsson.net
|