continuous4r 0.0.1 → 0.0.2
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/History.txt +1 -1
- data/Manifest.txt +34 -34
- data/PostInstall.txt +3 -0
- data/README.rdoc +58 -0
- data/Rakefile +28 -3
- data/lib/changelog_builder.rb +51 -0
- data/lib/continuous4r.rb +63 -426
- data/lib/dcov_builder.rb +144 -0
- data/lib/flay_builder.rb +38 -0
- data/lib/flog_builder.rb +120 -0
- data/lib/git_extractor.rb +48 -0
- data/lib/rcov_builder.rb +23 -0
- data/lib/rdoc_builder.rb +33 -0
- data/lib/reek_builder.rb +38 -0
- data/lib/roodi_builder.rb +41 -0
- data/lib/saikuro_builder.rb +20 -0
- data/lib/site/body-changelog.rhtml +1 -1
- data/lib/site/body-continuous4r-reports.rhtml +40 -47
- data/lib/site/body-dcov.rhtml +1 -21
- data/lib/site/body-flay.rhtml +16 -0
- data/lib/site/body-flog.rhtml +2 -10
- data/lib/site/body-rcov.rhtml +2 -3
- data/lib/site/body-rdoc.rhtml +1 -1
- data/lib/site/body-reek.rhtml +16 -0
- data/lib/site/body-roodi.rhtml +16 -0
- data/lib/site/body-saikuro.rhtml +32 -0
- data/lib/site/body-scm-usage.rhtml +13 -12
- data/lib/site/body-stats.rhtml +1 -1
- data/lib/site/body-tests.rhtml +1 -1
- data/lib/site/body-xdoclet.rhtml +29 -0
- data/lib/site/body-zentest.rhtml +1 -1
- data/lib/site/flog.html.erb +33 -0
- data/lib/site/flog_page.html.erb +74 -0
- data/lib/site/header.rhtml +36 -20
- data/lib/site/images/added.png +0 -0
- data/lib/site/images/deleted.png +0 -0
- data/lib/site/images/modified.png +0 -0
- data/lib/site/menu-continuous4r-reports.rhtml +4 -14
- data/lib/site/{menu-dcov.rhtml → menu-task.rhtml} +3 -5
- data/lib/site/style/maven-base.css +3 -0
- data/lib/site/syntax_highlighting.css +30 -0
- data/lib/stats_builder.rb +18 -0
- data/lib/subversion_extractor.rb +29 -19
- data/lib/tasks/continuous4r-project.xml +26 -0
- data/lib/tasks/continuous4r.rake +23 -0
- data/lib/tasks/continuous4r.rb +6 -0
- data/lib/tests_builder.rb +21 -0
- data/lib/tests_formatter.rb +13 -46
- data/lib/utils.rb +47 -0
- data/lib/xdoclet_builder.rb +48 -0
- data/lib/zen_test_formatter.rb +58 -28
- data/lib/zentest_builder.rb +19 -0
- data/script/console +10 -0
- data/script/console.cmd +1 -0
- data/script/destroy +1 -1
- data/script/generate +1 -1
- data/test/test_continuous4r.rb +1 -1
- data/test/test_helper.rb +1 -0
- data/website/index.html +141 -363
- data/website/index.txt +169 -228
- data/website/template.rhtml +2 -2
- metadata +66 -46
- data/License.txt +0 -20
- data/README.txt +0 -1
- data/config/hoe.rb +0 -71
- data/config/requirements.rb +0 -17
- data/lib/capistrano_formatter.rb +0 -19
- data/lib/continuous4r/version.rb +0 -9
- data/lib/flog_formatter.rb +0 -48
- data/lib/heckle_formatter.rb +0 -27
- data/lib/httperf_formatter.rb +0 -160
- data/lib/site/body-capistrano.rhtml +0 -8
- data/lib/site/body-heckle.rhtml +0 -16
- data/lib/site/body-httperf.rhtml +0 -8
- data/lib/site/body-kwala.rhtml +0 -35
- data/lib/site/body-railroad.rhtml +0 -29
- data/lib/site/menu-capistrano.rhtml +0 -23
- data/lib/site/menu-changelog.rhtml +0 -23
- data/lib/site/menu-flog.rhtml +0 -23
- data/lib/site/menu-heckle.rhtml +0 -23
- data/lib/site/menu-httperf.rhtml +0 -23
- data/lib/site/menu-kwala.rhtml +0 -23
- data/lib/site/menu-railroad.rhtml +0 -23
- data/lib/site/menu-rcov.rhtml +0 -23
- data/lib/site/menu-rdoc.rhtml +0 -23
- data/lib/site/menu-stats.rhtml +0 -23
- data/lib/site/menu-tests.rhtml +0 -23
- data/lib/site/menu-zentest.rhtml +0 -23
- data/log/debug.log +0 -0
- data/script/txt2html +0 -74
- data/script/txt2html.cmd +0 -1
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -17
data/website/template.rhtml
CHANGED
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
<%= body %>
|
|
39
39
|
<p class="coda">
|
|
40
|
-
<a href="duboisv@hotmail.com">Vincent Dubois</a>, <%= modified.pretty %><br>
|
|
41
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
|
40
|
+
<a href="mailto:duboisv@hotmail.com">Vincent Dubois</a>, <%= modified.pretty %><br>
|
|
41
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/" target="_blank">Paul Battley</a>
|
|
42
42
|
</p>
|
|
43
43
|
</div>
|
|
44
44
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: continuous4r
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vincent Dubois
|
|
@@ -9,99 +9,102 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-02-24 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
|
-
dependencies:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: newgem
|
|
17
|
+
type: :development
|
|
18
|
+
version_requirement:
|
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 1.2.1
|
|
24
|
+
version:
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: hoe
|
|
27
|
+
type: :development
|
|
28
|
+
version_requirement:
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.8.0
|
|
34
|
+
version:
|
|
35
|
+
description: Continuous integration tool which regroups in one place tests, quality and analysis tools in a Maven-like website.
|
|
36
|
+
email:
|
|
37
|
+
- duboisv@hotmail.com
|
|
18
38
|
executables: []
|
|
19
39
|
|
|
20
40
|
extensions: []
|
|
21
41
|
|
|
22
42
|
extra_rdoc_files:
|
|
23
43
|
- History.txt
|
|
24
|
-
- License.txt
|
|
25
44
|
- Manifest.txt
|
|
26
|
-
-
|
|
45
|
+
- PostInstall.txt
|
|
46
|
+
- README.rdoc
|
|
27
47
|
- website/index.txt
|
|
28
48
|
files:
|
|
29
49
|
- History.txt
|
|
30
|
-
- License.txt
|
|
31
50
|
- Manifest.txt
|
|
32
|
-
-
|
|
51
|
+
- PostInstall.txt
|
|
52
|
+
- README.rdoc
|
|
33
53
|
- Rakefile
|
|
34
|
-
- config/hoe.rb
|
|
35
|
-
- config/requirements.rb
|
|
36
|
-
- lib/capistrano_formatter.rb
|
|
37
54
|
- lib/continuous4r.rb
|
|
38
|
-
- lib/flog_formatter.rb
|
|
39
|
-
- lib/heckle_formatter.rb
|
|
40
|
-
- lib/httperf_formatter.rb
|
|
41
55
|
- lib/stats_formatter.rb
|
|
56
|
+
- lib/git_extractor.rb
|
|
42
57
|
- lib/subversion_extractor.rb
|
|
43
58
|
- lib/tests_formatter.rb
|
|
44
59
|
- lib/zen_test_formatter.rb
|
|
45
|
-
- lib/continuous4r/version.rb
|
|
46
|
-
- lib/site/body-capistrano.rhtml
|
|
47
60
|
- lib/site/body-changelog.rhtml
|
|
48
61
|
- lib/site/body-continuous4r-reports.rhtml
|
|
49
62
|
- lib/site/body-dcov.rhtml
|
|
50
63
|
- lib/site/body-dependencies.rhtml
|
|
51
64
|
- lib/site/body-flog.rhtml
|
|
52
|
-
- lib/site/body-
|
|
53
|
-
- lib/site/body-httperf.rhtml
|
|
65
|
+
- lib/site/body-flay.rhtml
|
|
54
66
|
- lib/site/body-issue-tracking.rhtml
|
|
55
|
-
- lib/site/body-kwala.rhtml
|
|
56
67
|
- lib/site/body-index.rhtml
|
|
57
|
-
- lib/site/body-railroad.rhtml
|
|
58
68
|
- lib/site/body-rcov.rhtml
|
|
59
69
|
- lib/site/body-rdoc.rhtml
|
|
70
|
+
- lib/site/body-reek.rhtml
|
|
71
|
+
- lib/site/body-roodi.rhtml
|
|
72
|
+
- lib/site/body-saikuro.rhtml
|
|
60
73
|
- lib/site/body-scm-usage.rhtml
|
|
61
74
|
- lib/site/body-stats.rhtml
|
|
62
75
|
- lib/site/body-team-list.rhtml
|
|
63
76
|
- lib/site/body-tests.rhtml
|
|
77
|
+
- lib/site/body-xdoclet.rhtml
|
|
64
78
|
- lib/site/body-zentest.rhtml
|
|
79
|
+
- lib/site/flog.html.erb
|
|
80
|
+
- lib/site/flog_page.html.erb
|
|
65
81
|
- lib/site/header.rhtml
|
|
66
|
-
- lib/site/menu-capistrano.rhtml
|
|
67
|
-
- lib/site/menu-changelog.rhtml
|
|
68
82
|
- lib/site/menu-continuous4r-reports.rhtml
|
|
69
|
-
- lib/site/menu-dcov.rhtml
|
|
70
83
|
- lib/site/menu-dependencies.rhtml
|
|
71
|
-
- lib/site/menu-flog.rhtml
|
|
72
|
-
- lib/site/menu-heckle.rhtml
|
|
73
|
-
- lib/site/menu-httperf.rhtml
|
|
74
84
|
- lib/site/menu-issue-tracking.rhtml
|
|
75
|
-
- lib/site/menu-kwala.rhtml
|
|
76
85
|
- lib/site/menu-index.rhtml
|
|
77
|
-
- lib/site/menu-railroad.rhtml
|
|
78
|
-
- lib/site/menu-rcov.rhtml
|
|
79
|
-
- lib/site/menu-rdoc.rhtml
|
|
80
86
|
- lib/site/menu-scm-usage.rhtml
|
|
81
|
-
- lib/site/menu-
|
|
87
|
+
- lib/site/menu-task.rhtml
|
|
82
88
|
- lib/site/menu-team-list.rhtml
|
|
83
|
-
- lib/site/
|
|
84
|
-
- lib/site/menu-zentest.rhtml
|
|
89
|
+
- lib/site/images/added.png
|
|
85
90
|
- lib/site/images/continuous4r-logo.png
|
|
91
|
+
- lib/site/images/deleted.png
|
|
86
92
|
- lib/site/images/external.png
|
|
87
93
|
- lib/site/images/icon_error_sml.gif
|
|
88
94
|
- lib/site/images/icon_success_sml.gif
|
|
95
|
+
- lib/site/images/modified.png
|
|
89
96
|
- lib/site/images/newwindow.png
|
|
90
97
|
- lib/site/style/commons-maven.css
|
|
91
98
|
- lib/site/style/maven-base.css
|
|
92
99
|
- lib/site/style/maven-theme.css
|
|
93
100
|
- lib/site/style/project.css
|
|
94
|
-
-
|
|
101
|
+
- lib/site/syntax_highlighting.css
|
|
102
|
+
- script/console
|
|
103
|
+
- script/console.cmd
|
|
95
104
|
- script/destroy
|
|
96
105
|
- script/destroy.cmd
|
|
97
106
|
- script/generate
|
|
98
107
|
- script/generate.cmd
|
|
99
|
-
- script/txt2html
|
|
100
|
-
- script/txt2html.cmd
|
|
101
|
-
- setup.rb
|
|
102
|
-
- tasks/deployment.rake
|
|
103
|
-
- tasks/environment.rake
|
|
104
|
-
- tasks/website.rake
|
|
105
108
|
- test/test_continuous4r.rb
|
|
106
109
|
- test/test_helper.rb
|
|
107
110
|
- website/index.html
|
|
@@ -109,12 +112,29 @@ files:
|
|
|
109
112
|
- website/javascripts/rounded_corners_lite.inc.js
|
|
110
113
|
- website/stylesheets/screen.css
|
|
111
114
|
- website/template.rhtml
|
|
115
|
+
- lib/tasks/continuous4r.rake
|
|
116
|
+
- lib/tasks/continuous4r.rb
|
|
117
|
+
- lib/tasks/continuous4r-project.xml
|
|
118
|
+
- lib/changelog_builder.rb
|
|
119
|
+
- lib/dcov_builder.rb
|
|
120
|
+
- lib/flay_builder.rb
|
|
121
|
+
- lib/flog_builder.rb
|
|
122
|
+
- lib/rcov_builder.rb
|
|
123
|
+
- lib/rdoc_builder.rb
|
|
124
|
+
- lib/reek_builder.rb
|
|
125
|
+
- lib/roodi_builder.rb
|
|
126
|
+
- lib/saikuro_builder.rb
|
|
127
|
+
- lib/stats_builder.rb
|
|
128
|
+
- lib/tests_builder.rb
|
|
129
|
+
- lib/xdoclet_builder.rb
|
|
130
|
+
- lib/zentest_builder.rb
|
|
131
|
+
- lib/utils.rb
|
|
112
132
|
has_rdoc: true
|
|
113
133
|
homepage: http://continuous4r.rubyforge.org
|
|
114
|
-
post_install_message:
|
|
134
|
+
post_install_message: PostInstall.txt
|
|
115
135
|
rdoc_options:
|
|
116
136
|
- --main
|
|
117
|
-
- README.
|
|
137
|
+
- README.rdoc
|
|
118
138
|
require_paths:
|
|
119
139
|
- lib
|
|
120
140
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -132,10 +152,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
132
152
|
requirements: []
|
|
133
153
|
|
|
134
154
|
rubyforge_project: continuous4r
|
|
135
|
-
rubygems_version: 1.
|
|
155
|
+
rubygems_version: 1.3.1
|
|
136
156
|
signing_key:
|
|
137
157
|
specification_version: 2
|
|
138
|
-
summary: Continuous integration tool which regroups
|
|
158
|
+
summary: Continuous integration tool which regroups in one place tests, quality and analysis tools in a Maven-like website.
|
|
139
159
|
test_files:
|
|
140
160
|
- test/test_helper.rb
|
|
141
161
|
- test/test_continuous4r.rb
|
data/License.txt
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2007 FIXME full name
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
README
|
data/config/hoe.rb
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
require 'continuous4r/version'
|
|
2
|
-
|
|
3
|
-
AUTHOR = 'Vincent Dubois' # can also be an array of Authors
|
|
4
|
-
EMAIL = "duboisv@hotmail.com"
|
|
5
|
-
DESCRIPTION = "Continuous integration tool which regroups some of the best tools reports in one web site"
|
|
6
|
-
GEM_NAME = 'continuous4r' # what ppl will type to install your gem
|
|
7
|
-
RUBYFORGE_PROJECT = 'continuous4r' # The unix name for your project
|
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
|
10
|
-
|
|
11
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
|
12
|
-
@config = nil
|
|
13
|
-
RUBYFORGE_USERNAME = "vdubois"
|
|
14
|
-
def rubyforge_username
|
|
15
|
-
unless @config
|
|
16
|
-
begin
|
|
17
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
|
18
|
-
rescue
|
|
19
|
-
puts <<-EOS
|
|
20
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
|
21
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
|
22
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
|
23
|
-
EOS
|
|
24
|
-
exit
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
REV = nil
|
|
32
|
-
# UNCOMMENT IF REQUIRED:
|
|
33
|
-
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
|
|
34
|
-
VERS = Continuous4r::VERSION::STRING + (REV ? ".#{REV}" : "")
|
|
35
|
-
RDOC_OPTS = ['--quiet', '--title', 'continuous4r documentation',
|
|
36
|
-
"--opname", "index.html",
|
|
37
|
-
"--line-numbers",
|
|
38
|
-
"--main", "README",
|
|
39
|
-
"--inline-source"]
|
|
40
|
-
|
|
41
|
-
class Hoe
|
|
42
|
-
def extra_deps
|
|
43
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
|
44
|
-
@extra_deps
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# Generate all the Rake tasks
|
|
49
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
|
50
|
-
hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
51
|
-
p.author = AUTHOR
|
|
52
|
-
p.description = DESCRIPTION
|
|
53
|
-
p.email = EMAIL
|
|
54
|
-
p.summary = DESCRIPTION
|
|
55
|
-
p.url = HOMEPATH
|
|
56
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
|
57
|
-
p.test_globs = ["test/**/test_*.rb"]
|
|
58
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
|
59
|
-
|
|
60
|
-
# == Optional
|
|
61
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
|
62
|
-
#p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
|
63
|
-
|
|
64
|
-
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
|
65
|
-
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
|
69
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
|
70
|
-
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
|
71
|
-
hoe.rsync_args = '-av --delete --ignore-errors'
|
data/config/requirements.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require 'fileutils'
|
|
2
|
-
include FileUtils
|
|
3
|
-
|
|
4
|
-
require 'rubygems'
|
|
5
|
-
%w[rake hoe newgem rubigen].each do |req_gem|
|
|
6
|
-
begin
|
|
7
|
-
require req_gem
|
|
8
|
-
rescue LoadError
|
|
9
|
-
puts "This Rakefile requires the '#{req_gem}' RubyGem."
|
|
10
|
-
puts "Installation: gem install #{req_gem} -y"
|
|
11
|
-
exit
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
|
|
16
|
-
|
|
17
|
-
require 'continuous4r'
|
data/lib/capistrano_formatter.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# ====================================================
|
|
2
|
-
# Classe de formatage des logs en sortie de Capistrano
|
|
3
|
-
# Author: Vincent Dubois
|
|
4
|
-
# ====================================================
|
|
5
|
-
class CapistranoFormatter
|
|
6
|
-
attr_accessor :name, :log
|
|
7
|
-
|
|
8
|
-
# Constructeur
|
|
9
|
-
def initialize name, log
|
|
10
|
-
self.name = name
|
|
11
|
-
self.log = log
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Methode qui permet de fabriquer le flux HTML a partir des flux console heckle
|
|
15
|
-
def to_html
|
|
16
|
-
html = "<h3>cap #{self.name}</h3>"
|
|
17
|
-
html = html + "<p><pre class='source'>#{self.log}</pre></p>"
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/continuous4r/version.rb
DELETED
data/lib/flog_formatter.rb
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# ================================================
|
|
2
|
-
# Classe de formatage de resultat renvoye par flog
|
|
3
|
-
# Author: Vincent Dubois
|
|
4
|
-
# ================================================
|
|
5
|
-
class FlogFormatter
|
|
6
|
-
attr_accessor :results
|
|
7
|
-
|
|
8
|
-
# Constructeur
|
|
9
|
-
def initialize results
|
|
10
|
-
self.results = results
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
# Methode qui permet de fabriquer le flux HTML a partir du flux console flog
|
|
14
|
-
def to_html
|
|
15
|
-
lines = self.results.split(/$/)
|
|
16
|
-
total_score = lines[0].split(" = ")[1]
|
|
17
|
-
html = "<h3>Total score : #{total_score}</h3>"
|
|
18
|
-
# On supprime les deux premieres lignes (total et ligne vide) et la derniere (ligne vide)
|
|
19
|
-
lines.delete_at(0)
|
|
20
|
-
lines.delete_at(0)
|
|
21
|
-
lines.delete_at(lines.length-1)
|
|
22
|
-
begin
|
|
23
|
-
lines.each_with_index do |line, index|
|
|
24
|
-
html = html + format_line(line, index)
|
|
25
|
-
end
|
|
26
|
-
rescue Exception => e
|
|
27
|
-
raise " Unable to format flog results. Exception is : #{e.to_s}"
|
|
28
|
-
end
|
|
29
|
-
html = html + "</tbody></table>"
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Méthode qui permet de formater une ligne de resultat
|
|
33
|
-
def format_line line, index
|
|
34
|
-
html = ""
|
|
35
|
-
if line[1..1] != ' '
|
|
36
|
-
if index != 0
|
|
37
|
-
html = html + "</tbody></table><br/>"
|
|
38
|
-
end
|
|
39
|
-
html = html + "<table class='bodyTable'><thead><th>Element</th><th>Score</th></thead><tbody>"
|
|
40
|
-
total_score = line.split(': ')[1]
|
|
41
|
-
total_score = total_score.split(/\(|\)/)
|
|
42
|
-
html = html + "<tr class='#{index % 2 == 0 ? "a" : "b"}'><td><b>#{line.split(': ')[0]}</b></td><td><b>#{total_score}</b></td></tr>"
|
|
43
|
-
else
|
|
44
|
-
html = html + "<tr class='#{index % 2 == 0 ? "a" : "b"}'><td>     #{line.split(': ')[1]}</td><td>#{line.split(': ')[0]}</td></tr>"
|
|
45
|
-
end
|
|
46
|
-
return html
|
|
47
|
-
end
|
|
48
|
-
end
|
data/lib/heckle_formatter.rb
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
|
-
require 'XmlElements'
|
|
3
|
-
# =====================================================
|
|
4
|
-
# Classe de formatage des resultats renvoyes par heckle
|
|
5
|
-
# Author: Vincent Dubois
|
|
6
|
-
# =====================================================
|
|
7
|
-
class HeckleFormatter
|
|
8
|
-
attr_accessor :params
|
|
9
|
-
|
|
10
|
-
# Constructeur
|
|
11
|
-
def initialize params
|
|
12
|
-
self.params = params
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Methode qui permet de fabriquer le flux HTML a partir des flux console heckle
|
|
16
|
-
def to_html
|
|
17
|
-
html = "<table class='bodyTable'><thead><th>Testing element</th><th>Pass</th><th>Result</th></thead><tbody>"
|
|
18
|
-
i = 0
|
|
19
|
-
self.params.each('test') do |test|
|
|
20
|
-
puts " Running heckle on #{test['class']} against #{test['test_pattern']}..."
|
|
21
|
-
pass = system("heckle #{test['class']} -t #{test['test_pattern']} > heckle.log")
|
|
22
|
-
html = html + "<tr class='#{ i % 2 == 0 ? 'a' : 'b'}'><td><strong>#{test['class']}</strong> against <strong>#{test['test_pattern']}</strong></td><td style='text-align: center;'><img src='images/icon_#{pass ? 'success' : 'error'}_sml.gif'/></td><td><pre>#{File.read("heckle.log")}</pre></td></tr>"
|
|
23
|
-
i = i + 1
|
|
24
|
-
end
|
|
25
|
-
html = html + "</tbody></table>"
|
|
26
|
-
end
|
|
27
|
-
end
|
data/lib/httperf_formatter.rb
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# ===================================================
|
|
2
|
-
# Classe de formatage de resultat renvoye par httperf
|
|
3
|
-
# Author: Vincent Dubois
|
|
4
|
-
# ===================================================
|
|
5
|
-
class HttperfFormatter
|
|
6
|
-
attr_accessor :results, :description
|
|
7
|
-
|
|
8
|
-
# Constructeur
|
|
9
|
-
def initialize results, description
|
|
10
|
-
self.results = results
|
|
11
|
-
self.description = description
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Methode qui permet de fabriquer le flux HTML a partir du flux console httperf
|
|
15
|
-
def to_html
|
|
16
|
-
html = "<h3>Statistics for task '#{self.description}' :</h3><table class='bodyTable'><tbody>"
|
|
17
|
-
begin
|
|
18
|
-
results_lines = self.results.split(/$/)
|
|
19
|
-
# On enleve la premiere ligne d'espace, sinon elle apparait en premier
|
|
20
|
-
if results_lines.length > 2 #and results_lines[2] == ""
|
|
21
|
-
results_lines.delete_at(2)
|
|
22
|
-
results_lines.delete_at(results_lines.length-1)
|
|
23
|
-
end
|
|
24
|
-
i = 0
|
|
25
|
-
results_lines.each do |line|
|
|
26
|
-
if line[0..0].to_i == 0
|
|
27
|
-
elements = line[1..line.length].split(/$|\:/)
|
|
28
|
-
else
|
|
29
|
-
elements = line.split(/$|\:/)
|
|
30
|
-
end
|
|
31
|
-
html = html + "<tr class='" + (i % 2 == 0 ? "a" : "b" ) + "'>" + format_line(elements) + "</tr>"
|
|
32
|
-
i = i + 1
|
|
33
|
-
end
|
|
34
|
-
rescue Exception => e
|
|
35
|
-
raise " Unable to format httperf results. Exception is : #{e.to_s}"
|
|
36
|
-
end
|
|
37
|
-
html = html + "</tbody></table>"
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
# Methode qui permet de formater une ligne de presentation des resultats
|
|
41
|
-
def format_line elements
|
|
42
|
-
line = ""
|
|
43
|
-
if elements.length == 0
|
|
44
|
-
line = line + "<td colspan='11'> </td>"
|
|
45
|
-
else
|
|
46
|
-
details = elements[1].split(' ') if elements.length > 1
|
|
47
|
-
if elements[0] != "Maximum connect burst length" and elements[0][0..6] != "ttperf "
|
|
48
|
-
line = line + "<td><b>#{elements[0]}</b></td>"
|
|
49
|
-
end
|
|
50
|
-
case elements[0]
|
|
51
|
-
when "Total"
|
|
52
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
53
|
-
line = line + "<td>#{details[1]}</td>"
|
|
54
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
55
|
-
line = line + "<td>#{details[3]}</td>"
|
|
56
|
-
line = line + "<td><b>#{details[4]}</b></td>"
|
|
57
|
-
line = line + "<td>#{details[5]}</td>"
|
|
58
|
-
line = line + "<td><b>#{details[6]}</b></td>"
|
|
59
|
-
line = line + "<td colspan='3'>#{details[7]} #{details[8]}</td>"
|
|
60
|
-
when "Connection rate"
|
|
61
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
62
|
-
when "Connection time [ms]"
|
|
63
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
64
|
-
if details[0] == "min"
|
|
65
|
-
line = line + "<td>#{details[1]}</td>"
|
|
66
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
67
|
-
line = line + "<td>#{details[3]}</td>"
|
|
68
|
-
line = line + "<td><b>#{details[4]}</b></td>"
|
|
69
|
-
line = line + "<td>#{details[5]}</td>"
|
|
70
|
-
line = line + "<td><b>#{details[6]}</b></td>"
|
|
71
|
-
line = line + "<td>#{details[7]}</td>"
|
|
72
|
-
line = line + "<td><b>#{details[8]}</b></td>"
|
|
73
|
-
line = line + "<td>#{details[9]}</td>"
|
|
74
|
-
else
|
|
75
|
-
line = line + "<td colspan='9'>#{details[1]}</td>"
|
|
76
|
-
end
|
|
77
|
-
when "Connection length [replies/conn]"
|
|
78
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
79
|
-
when "Request rate"
|
|
80
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
81
|
-
when "Request size [B]"
|
|
82
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
83
|
-
when "Reply rate [replies/s]"
|
|
84
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
85
|
-
line = line + "<td>#{details[1]}</td>"
|
|
86
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
87
|
-
line = line + "<td>#{details[3]}</td>"
|
|
88
|
-
line = line + "<td><b>#{details[4]}</b></td>"
|
|
89
|
-
line = line + "<td>#{details[5]}</td>"
|
|
90
|
-
line = line + "<td><b>#{details[6]}</b></td>"
|
|
91
|
-
line = line + "<td>#{details[7]}</td>"
|
|
92
|
-
line = line + "<td colspan='3'><i>#{details[8]} #{details[9]}</i></td>"
|
|
93
|
-
when "Reply time [ms]"
|
|
94
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
95
|
-
line = line + "<td>#{details[1]}</td>"
|
|
96
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
97
|
-
line = line + "<td colspan='8'>#{details[3]}</td>"
|
|
98
|
-
when "Reply size [B]"
|
|
99
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
100
|
-
line = line + "<td>#{details[1]}</td>"
|
|
101
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
102
|
-
line = line + "<td>#{details[3]}</td>"
|
|
103
|
-
line = line + "<td><b>#{details[4]}</b></td>"
|
|
104
|
-
line = line + "<td>#{details[5]}</td>"
|
|
105
|
-
line = line + "<td colspan='5'><i>#{details[6]} #{details[7]}</i></td>"
|
|
106
|
-
when "Reply status"
|
|
107
|
-
line = line + "<td>#{details[0]}</td>"
|
|
108
|
-
line = line + "<td>#{details[1]}</td>"
|
|
109
|
-
line = line + "<td>#{details[2]}</td>"
|
|
110
|
-
line = line + "<td>#{details[3]}</td>"
|
|
111
|
-
line = line + "<td colspan='7'>#{details[4]}</td>"
|
|
112
|
-
when "CPU time [s]"
|
|
113
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
114
|
-
line = line + "<td>#{details[1]}</td>"
|
|
115
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
116
|
-
line = line + "<td>#{details[3]}</td>"
|
|
117
|
-
line = line + "<td colspan='7'><i>#{details[4]} #{details[5]} #{details[6]} #{details[7]} #{details[8]} #{details[9]}</i></td>"
|
|
118
|
-
when "Net I/O"
|
|
119
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
120
|
-
when "Errors"
|
|
121
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
122
|
-
line = line + "<td>#{details[1]}</td>"
|
|
123
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
124
|
-
line = line + "<td>#{details[3]}</td>"
|
|
125
|
-
line = line + "<td><b>#{details[4]}</b></td>"
|
|
126
|
-
line = line + "<td>#{details[5]}</td>"
|
|
127
|
-
line = line + "<td><b>#{details[6]}</b></td>"
|
|
128
|
-
if details[0] == "total"
|
|
129
|
-
line = line + "<td>#{details[7]}</td>"
|
|
130
|
-
line = line + "<td><b>#{details[8]}</b></td>"
|
|
131
|
-
line = line + "<td>#{details[9]}</td>"
|
|
132
|
-
else
|
|
133
|
-
line = line + "<td colspan='4'>#{details[7]}</td>"
|
|
134
|
-
end
|
|
135
|
-
when "Session rate [sess/s]"
|
|
136
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
137
|
-
line = line + "<td>#{details[1]}</td>"
|
|
138
|
-
line = line + "<td><b>#{details[2]}</b></td>"
|
|
139
|
-
line = line + "<td>#{details[3]}</td>"
|
|
140
|
-
line = line + "<td><b>#{details[4]}</b></td>"
|
|
141
|
-
line = line + "<td>#{details[5]}</td>"
|
|
142
|
-
line = line + "<td><b>#{details[6]}</b></td>"
|
|
143
|
-
line = line + "<td>#{details[7]}</td>"
|
|
144
|
-
line = line + "<td colspan='3'><i>#{details[8]}</i></td>"
|
|
145
|
-
when "Session"
|
|
146
|
-
line = line + "<td><b>#{details[0]}</b></td>"
|
|
147
|
-
line = line + "<td colspan='9'>#{details[1]} #{details[2]}</td>"
|
|
148
|
-
when "Session lifetime [s]"
|
|
149
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
150
|
-
when "Session failtime [s]"
|
|
151
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
152
|
-
when "Session length histogram"
|
|
153
|
-
line = line + "<td colspan='10'>#{elements[1]}</td>"
|
|
154
|
-
end
|
|
155
|
-
return line
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
private :format_line
|
|
160
|
-
end
|