stella 0.8.2.001 → 0.8.2.002
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.
- data/CHANGES.txt +2 -0
- data/Rakefile +9 -3
- data/VERSION.yml +1 -1
- data/lib/stella/common.rb +6 -11
- data/lib/stella/testplan.rb +1 -4
- data/stella.gemspec +1 -1
- data/tryouts/70_module_usage.rb +4 -4
- metadata +1 -1
data/CHANGES.txt
CHANGED
@@ -14,6 +14,7 @@ STELLA, CHANGES
|
|
14
14
|
#### 0.8.2 (2010-03-05) ###############################
|
15
15
|
|
16
16
|
* FIXED: Misc issues with usage via module (Stella::Engine.load)
|
17
|
+
* FIXED: ANSI code method stubs only created when Drydock not available
|
17
18
|
* CHANGE: Remove all logs except summary and exceptions
|
18
19
|
* CHANGE: Renamed .stella/logs/latest/request-exceptions to .stella/logs/latest/exceptions
|
19
20
|
* CHANGE: Removed unused Load implementations and renamed LoadQueue to Load
|
@@ -22,6 +23,7 @@ STELLA, CHANGES
|
|
22
23
|
* CHANGE: Cleaned up generate mode CLI output
|
23
24
|
* CHANGE: Removed no-logging option
|
24
25
|
* CHANGE: Renamed Testrun#summary to Testrun#stats
|
26
|
+
* CHANGE: Pass entire URI when calling Testplan#new
|
25
27
|
* ADDED: JSON statistics log (.stella/logs/latest/stats)
|
26
28
|
|
27
29
|
|
data/Rakefile
CHANGED
@@ -1,12 +1,18 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
require "rake"
|
3
|
-
require "rake/rdoctask"
|
4
3
|
require "rake/clean"
|
5
4
|
require 'yaml'
|
6
5
|
|
6
|
+
begin
|
7
|
+
require 'hanna/rdoctask'
|
8
|
+
rescue LoadError
|
9
|
+
require 'rake/rdoctask'
|
10
|
+
end
|
11
|
+
|
7
12
|
config = YAML.load_file("VERSION.yml")
|
8
13
|
task :default => ["build"]
|
9
|
-
CLEAN.include [ 'pkg', 'doc'
|
14
|
+
CLEAN.include [ 'pkg', 'doc' ]
|
15
|
+
name = "stella"
|
10
16
|
|
11
17
|
begin
|
12
18
|
require "jeweler"
|
@@ -37,7 +43,7 @@ end
|
|
37
43
|
|
38
44
|
Rake::RDocTask.new do |rdoc|
|
39
45
|
version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}.#{config[:BUILD]}"
|
40
|
-
rdoc.rdoc_dir = "
|
46
|
+
rdoc.rdoc_dir = "doc"
|
41
47
|
rdoc.title = "stella #{version}"
|
42
48
|
rdoc.rdoc_files.include("README*")
|
43
49
|
rdoc.rdoc_files.include("LICENSE.txt")
|
data/VERSION.yml
CHANGED
data/lib/stella/common.rb
CHANGED
@@ -7,20 +7,15 @@ $KCODE = "u" if RUBY_VERSION =~ /^1.8/
|
|
7
7
|
|
8
8
|
class String
|
9
9
|
|
10
|
-
def
|
10
|
+
def drydock_stub(*args)
|
11
11
|
self
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
self
|
20
|
-
end
|
21
|
-
|
22
|
-
def bright(*args)
|
23
|
-
self
|
14
|
+
unless method_defined? :color
|
15
|
+
alias_method :att, :drydock_stub
|
16
|
+
alias_method :bright, :drydock_stub
|
17
|
+
alias_method :color, :drydock_stub
|
18
|
+
alias_method :colour, :drydock_stub
|
24
19
|
end
|
25
20
|
|
26
21
|
def in_seconds
|
data/lib/stella/testplan.rb
CHANGED
@@ -53,10 +53,7 @@ class Testplan < Storable
|
|
53
53
|
usecase = Stella::Testplan::Usecase.new
|
54
54
|
usecase.ratio = 1.0
|
55
55
|
uris.each do |uri|
|
56
|
-
|
57
|
-
uri = URI.parse uri
|
58
|
-
uri.path = '/' if uri.path.nil? || uri.path.empty?
|
59
|
-
req = usecase.add_request :get, uri.path
|
56
|
+
req = usecase.add_request :get, uri
|
60
57
|
end
|
61
58
|
self.add_usecase usecase
|
62
59
|
end
|
data/stella.gemspec
CHANGED
data/tryouts/70_module_usage.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'stella'
|
4
4
|
|
5
|
-
Stella.enable_quiet
|
6
|
-
|
7
|
-
plan = Stella::Testplan.new('/')
|
5
|
+
#Stella.enable_quiet
|
6
|
+
Stella.stdout.lev = 3
|
7
|
+
plan = Stella::Testplan.new('http://localhost:3114/search')
|
8
8
|
opts = {
|
9
|
-
:hosts => '
|
9
|
+
:hosts => '',
|
10
10
|
:clients => 100,
|
11
11
|
#:duration => 10
|
12
12
|
}
|