guard-cunit 0.0.1-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +11 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +6 -0
- data/Guardfile +11 -0
- data/README.md +70 -0
- data/Rakefile +24 -0
- data/doc/Gemfile.html +110 -0
- data/doc/Guard/Cunit/CunitParser.html +396 -0
- data/doc/Guard/Cunit/Runner.html +522 -0
- data/doc/Guard/Cunit.html +278 -0
- data/doc/Guard/CunitGuard.html +156 -0
- data/doc/Guard/Dsl.html +338 -0
- data/doc/Guard.html +149 -0
- data/doc/Guardfile.html +116 -0
- data/doc/Object.html +359 -0
- data/doc/Rakefile.html +132 -0
- data/doc/TempPrjEnv.html +239 -0
- data/doc/TestOutput.html +235 -0
- data/doc/created.rid +12 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +102 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/lib/guard/cunit/templates/Guardfile.html +115 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +157 -0
- data/guard-cunit.gemspec +29 -0
- data/lib/guard/cunit/cunit_parser.rb +70 -0
- data/lib/guard/cunit/runner.rb +99 -0
- data/lib/guard/cunit/templates/Guardfile +12 -0
- data/lib/guard/cunit/version.rb +7 -0
- data/lib/guard/cunit.rb +69 -0
- data/spec/guard_cunit_parser_spec.rb +79 -0
- data/spec/guard_cunit_spec.rb +198 -0
- data/spec/spec_helper.rb +72 -0
- metadata +167 -0
data/.travis.yml
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- "1.8.7"
|
4
|
+
- "1.9.2"
|
5
|
+
- "1.9.3"
|
6
|
+
- jruby-18mode # JRuby in 1.8 mode
|
7
|
+
- jruby-19mode # JRuby in 1.9 mode
|
8
|
+
- rbx-18mode
|
9
|
+
- rbx-19mode
|
10
|
+
# uncomment this line if your project needs to run something other than `rake`:
|
11
|
+
script: bundle exec rspec spec
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Chagelog
|
data/Gemfile
ADDED
data/Guardfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Guard CUnit [![Build Status](https://secure.travis-ci.org/teacup-on-rockingchair/guard-cunit.png?branch=master)](http://travis-ci.org/teacup-on-rockingchair/guard-cunit)
|
2
|
+
|
3
|
+
CUnit Guard allows you to run/watch Unit test for C modules, or anything other that works with Makefile
|
4
|
+
|
5
|
+
Soon will add parser for CUnit tests, and probably other UT libs
|
6
|
+
|
7
|
+
## Install
|
8
|
+
|
9
|
+
Need to have guard and also some of the notifiers that guard uses
|
10
|
+
|
11
|
+
otherwise, get the gemfile and install it:
|
12
|
+
```
|
13
|
+
$ gem install ./guard-cunit-*.gem
|
14
|
+
```
|
15
|
+
|
16
|
+
will put that in rubygems soon
|
17
|
+
|
18
|
+
# Guardfile
|
19
|
+
|
20
|
+
Generating the Guardfile is like all the other
|
21
|
+
|
22
|
+
```
|
23
|
+
$ guard init cunit
|
24
|
+
```
|
25
|
+
|
26
|
+
The file by default looks like this:
|
27
|
+
|
28
|
+
```
|
29
|
+
# A sample Guardfile
|
30
|
+
# More info at https://github.com/guard/guard#readme
|
31
|
+
|
32
|
+
#
|
33
|
+
# Cunit Guardfile - keep dflt builders after guard watcher's block
|
34
|
+
#
|
35
|
+
guard 'cunit' do
|
36
|
+
watch(%r{((.+)\.c$)|((.+)\.h$)|((M|m)akefile$)} )
|
37
|
+
end
|
38
|
+
|
39
|
+
set_builder "make 2>&1"
|
40
|
+
set_cleaner "make clean"
|
41
|
+
cunit_runner "#{File.basename(Dir.getwd)}_unit"
|
42
|
+
libdir "#{Dir.getwd}"
|
43
|
+
|
44
|
+
```
|
45
|
+
|
46
|
+
After the guard block are the new methods from Guardfile DSL, which are used for the tasks needed to be performed on running the build/tests
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
## Usage
|
51
|
+
|
52
|
+
For all other stuff related to guard's usage please read [Guard usage doc](https://github.com/guard/guard#readme)
|
53
|
+
|
54
|
+
Testing
|
55
|
+
-----------
|
56
|
+
|
57
|
+
Run rspec in top directory of the project or guard-rspec
|
58
|
+
|
59
|
+
|
60
|
+
Todo
|
61
|
+
-----------
|
62
|
+
- fix all bugs :)
|
63
|
+
- add parser for CUNIT tests
|
64
|
+
- add hook for coverage
|
65
|
+
- ... whatever wind blows ...
|
66
|
+
|
67
|
+
Author
|
68
|
+
----------
|
69
|
+
[A tea cup on a rocking chair](https://github.com/strandjata)
|
70
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
|
4
|
+
Bundler::GemHelper.install_tasks
|
5
|
+
|
6
|
+
task :default => [ :spec, :doc, :gem]
|
7
|
+
|
8
|
+
|
9
|
+
desc "Run RSpec"
|
10
|
+
RSpec::Core::RakeTask.new do |t|
|
11
|
+
t.rcov = ENV['RCOV']
|
12
|
+
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
|
13
|
+
t.verbose = true
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
task :doc do
|
18
|
+
system 'rdoc -a -U'
|
19
|
+
end
|
20
|
+
|
21
|
+
task :gem do
|
22
|
+
system 'rm guard-cunit*.gem'
|
23
|
+
system 'gem build guard-cunit.gemspec'
|
24
|
+
end
|
data/doc/Gemfile.html
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>Gemfile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="project-metadata">
|
47
|
+
<nav id="fileindex-section" class="section project-section">
|
48
|
+
<h3 class="section-header">Pages</h3>
|
49
|
+
|
50
|
+
<ul>
|
51
|
+
|
52
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a>
|
53
|
+
|
54
|
+
<li class="file"><a href="./Guardfile.html">Guardfile</a>
|
55
|
+
|
56
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
57
|
+
|
58
|
+
<li class="file"><a href="./lib/guard/cunit/templates/Guardfile.html">Guardfile</a>
|
59
|
+
|
60
|
+
</ul>
|
61
|
+
</nav>
|
62
|
+
|
63
|
+
<nav id="classindex-section" class="section project-section">
|
64
|
+
<h3 class="section-header">Class and Module Index</h3>
|
65
|
+
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="./Guard.html">Guard</a>
|
69
|
+
|
70
|
+
<li><a href="./Guard.html">Guard</a>
|
71
|
+
|
72
|
+
<li><a href="./Guard/Cunit.html">Guard::Cunit</a>
|
73
|
+
|
74
|
+
<li><a href="./Guard/Cunit/CunitParser.html">Guard::Cunit::CunitParser</a>
|
75
|
+
|
76
|
+
<li><a href="./Guard/Cunit/Runner.html">Guard::Cunit::Runner</a>
|
77
|
+
|
78
|
+
<li><a href="./Guard/CunitGuard.html">Guard::CunitGuard</a>
|
79
|
+
|
80
|
+
<li><a href="./Guard/Dsl.html">Guard::Dsl</a>
|
81
|
+
|
82
|
+
<li><a href="./Object.html">Object</a>
|
83
|
+
|
84
|
+
<li><a href="./TempPrjEnv.html">TempPrjEnv</a>
|
85
|
+
|
86
|
+
<li><a href="./TestOutput.html">TestOutput</a>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</nav>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
</nav>
|
93
|
+
|
94
|
+
<div id="documentation" class="description">
|
95
|
+
|
96
|
+
<p>source “<a href="http://rubygems.org">rubygems.org</a>”</p>
|
97
|
+
|
98
|
+
<p># Specify your gem’s dependencies in guard-cunit.gemspec gemspec gem
|
99
|
+
‘guard’, :require=>true gem ‘rspec-core’, :require=> true</p>
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<footer id="validator-badges">
|
106
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
107
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
108
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
109
|
+
</footer>
|
110
|
+
|
@@ -0,0 +1,396 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Guard::Cunit::CunitParser - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../index.html">Home</a>
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/guard/cunit/cunit_parser.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-cunit_output">#cunit_output</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-failures_output">#failures_output</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-full_output">#full_output</a>
|
80
|
+
|
81
|
+
<li><a href="#method-i-get_failures">#get_failures</a>
|
82
|
+
|
83
|
+
<li><a href="#method-i-get_summary">#get_summary</a>
|
84
|
+
|
85
|
+
<li><a href="#method-i-parse_output">#parse_output</a>
|
86
|
+
|
87
|
+
</ul>
|
88
|
+
</nav>
|
89
|
+
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div id="project-metadata">
|
93
|
+
<nav id="fileindex-section" class="section project-section">
|
94
|
+
<h3 class="section-header">Pages</h3>
|
95
|
+
|
96
|
+
<ul>
|
97
|
+
|
98
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a>
|
99
|
+
|
100
|
+
<li class="file"><a href="../../Guardfile.html">Guardfile</a>
|
101
|
+
|
102
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a>
|
103
|
+
|
104
|
+
<li class="file"><a href="../../lib/guard/cunit/templates/Guardfile.html">Guardfile</a>
|
105
|
+
|
106
|
+
</ul>
|
107
|
+
</nav>
|
108
|
+
|
109
|
+
<nav id="classindex-section" class="section project-section">
|
110
|
+
<h3 class="section-header">Class and Module Index</h3>
|
111
|
+
|
112
|
+
<ul class="link-list">
|
113
|
+
|
114
|
+
<li><a href="../../Guard.html">Guard</a>
|
115
|
+
|
116
|
+
<li><a href="../../Guard.html">Guard</a>
|
117
|
+
|
118
|
+
<li><a href="../../Guard/Cunit.html">Guard::Cunit</a>
|
119
|
+
|
120
|
+
<li><a href="../../Guard/Cunit/CunitParser.html">Guard::Cunit::CunitParser</a>
|
121
|
+
|
122
|
+
<li><a href="../../Guard/Cunit/Runner.html">Guard::Cunit::Runner</a>
|
123
|
+
|
124
|
+
<li><a href="../../Guard/CunitGuard.html">Guard::CunitGuard</a>
|
125
|
+
|
126
|
+
<li><a href="../../Guard/Dsl.html">Guard::Dsl</a>
|
127
|
+
|
128
|
+
<li><a href="../../Object.html">Object</a>
|
129
|
+
|
130
|
+
<li><a href="../../TempPrjEnv.html">TempPrjEnv</a>
|
131
|
+
|
132
|
+
<li><a href="../../TestOutput.html">TestOutput</a>
|
133
|
+
|
134
|
+
</ul>
|
135
|
+
</nav>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
</nav>
|
139
|
+
|
140
|
+
<div id="documentation">
|
141
|
+
<h1 class="class">class Guard::Cunit::CunitParser</h1>
|
142
|
+
|
143
|
+
<div id="description" class="description">
|
144
|
+
|
145
|
+
</div><!-- description -->
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<!-- Methods -->
|
160
|
+
|
161
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
162
|
+
<h3 class="section-header">Public Class Methods</h3>
|
163
|
+
|
164
|
+
|
165
|
+
<div id="method-c-new" class="method-detail ">
|
166
|
+
|
167
|
+
<div class="method-heading">
|
168
|
+
<span class="method-name">new</span><span
|
169
|
+
class="method-args">(task_output = nil)</span>
|
170
|
+
<span class="method-click-advice">click to toggle source</span>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
|
176
|
+
<p>constructor</p>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<div class="method-source-code" id="new-source">
|
181
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 31</span>
|
182
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">task_output</span> = <span class="ruby-keyword">nil</span>)
|
183
|
+
<span class="ruby-identifier">parse_output</span>( <span class="ruby-identifier">task_output</span> ) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">task_output</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
|
184
|
+
<span class="ruby-keyword">end</span></pre>
|
185
|
+
</div><!-- new-source -->
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
</div><!-- new-method -->
|
193
|
+
|
194
|
+
|
195
|
+
</section><!-- public-class-method-details -->
|
196
|
+
|
197
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
198
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
199
|
+
|
200
|
+
|
201
|
+
<div id="method-i-cunit_output" class="method-detail ">
|
202
|
+
|
203
|
+
<div class="method-heading">
|
204
|
+
<span class="method-name">cunit_output</span><span
|
205
|
+
class="method-args">()</span>
|
206
|
+
<span class="method-click-advice">click to toggle source</span>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
|
210
|
+
<div class="method-description">
|
211
|
+
|
212
|
+
<p>display summary of the suites/tests/asserts</p>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
<div class="method-source-code" id="cunit_output-source">
|
217
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 54</span>
|
218
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cunit_output</span>
|
219
|
+
<span class="ruby-ivar">@summary_output</span>
|
220
|
+
<span class="ruby-keyword">end</span></pre>
|
221
|
+
</div><!-- cunit_output-source -->
|
222
|
+
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</div><!-- cunit_output-method -->
|
229
|
+
|
230
|
+
|
231
|
+
<div id="method-i-failures_output" class="method-detail ">
|
232
|
+
|
233
|
+
<div class="method-heading">
|
234
|
+
<span class="method-name">failures_output</span><span
|
235
|
+
class="method-args">()</span>
|
236
|
+
<span class="method-click-advice">click to toggle source</span>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
|
242
|
+
<p>display failures output</p>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
<div class="method-source-code" id="failures_output-source">
|
247
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 64</span>
|
248
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">failures_output</span>
|
249
|
+
<span class="ruby-ivar">@failures</span>
|
250
|
+
<span class="ruby-keyword">end</span></pre>
|
251
|
+
</div><!-- failures_output-source -->
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
</div><!-- failures_output-method -->
|
259
|
+
|
260
|
+
|
261
|
+
<div id="method-i-full_output" class="method-detail ">
|
262
|
+
|
263
|
+
<div class="method-heading">
|
264
|
+
<span class="method-name">full_output</span><span
|
265
|
+
class="method-args">()</span>
|
266
|
+
<span class="method-click-advice">click to toggle source</span>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
<div class="method-description">
|
271
|
+
|
272
|
+
<p>copy of the cunit output</p>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
<div class="method-source-code" id="full_output-source">
|
277
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 59</span>
|
278
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">full_output</span>
|
279
|
+
<span class="ruby-ivar">@output</span>
|
280
|
+
<span class="ruby-keyword">end</span></pre>
|
281
|
+
</div><!-- full_output-source -->
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
</div><!-- full_output-method -->
|
289
|
+
|
290
|
+
|
291
|
+
<div id="method-i-get_failures" class="method-detail ">
|
292
|
+
|
293
|
+
<div class="method-heading">
|
294
|
+
<span class="method-name">get_failures</span><span
|
295
|
+
class="method-args">()</span>
|
296
|
+
<span class="method-click-advice">click to toggle source</span>
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
<div class="method-description">
|
301
|
+
|
302
|
+
<p>find failures from <a href="../Cunit.html">Cunit</a> test report</p>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
<div class="method-source-code" id="get_failures-source">
|
307
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 48</span>
|
308
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_failures</span>
|
309
|
+
<span class="ruby-ivar">@failures</span> = <span class="ruby-constant">TestOutput</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@output</span>[<span class="ruby-regexp">%rSuite[\w\W]*/</span>].<span class="ruby-identifier">sub</span>(<span class="ruby-ivar">@summary_output</span>,<span class="ruby-string">""</span>).<span class="ruby-identifier">strip</span>)
|
310
|
+
<span class="ruby-ivar">@failures</span>.<span class="ruby-identifier">limit_to_rows!</span>(<span class="ruby-value">3</span>)
|
311
|
+
<span class="ruby-keyword">end</span></pre>
|
312
|
+
</div><!-- get_failures-source -->
|
313
|
+
|
314
|
+
</div>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</div><!-- get_failures-method -->
|
320
|
+
|
321
|
+
|
322
|
+
<div id="method-i-get_summary" class="method-detail ">
|
323
|
+
|
324
|
+
<div class="method-heading">
|
325
|
+
<span class="method-name">get_summary</span><span
|
326
|
+
class="method-args">()</span>
|
327
|
+
<span class="method-click-advice">click to toggle source</span>
|
328
|
+
</div>
|
329
|
+
|
330
|
+
|
331
|
+
<div class="method-description">
|
332
|
+
|
333
|
+
<p>find summary of the cunit test reprot</p>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
<div class="method-source-code" id="get_summary-source">
|
338
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 43</span>
|
339
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_summary</span>
|
340
|
+
<span class="ruby-ivar">@summary_output</span> = <span class="ruby-constant">TestOutput</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@output</span>[<span class="ruby-regexp">%rRun Summary:[\w\W]*/</span>])
|
341
|
+
<span class="ruby-keyword">end</span></pre>
|
342
|
+
</div><!-- get_summary-source -->
|
343
|
+
|
344
|
+
</div>
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
</div><!-- get_summary-method -->
|
350
|
+
|
351
|
+
|
352
|
+
<div id="method-i-parse_output" class="method-detail ">
|
353
|
+
|
354
|
+
<div class="method-heading">
|
355
|
+
<span class="method-name">parse_output</span><span
|
356
|
+
class="method-args">( task_output )</span>
|
357
|
+
<span class="method-click-advice">click to toggle source</span>
|
358
|
+
</div>
|
359
|
+
|
360
|
+
|
361
|
+
<div class="method-description">
|
362
|
+
|
363
|
+
<p>get cunit output</p>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
<div class="method-source-code" id="parse_output-source">
|
368
|
+
<pre><span class="ruby-comment"># File lib/guard/cunit/cunit_parser.rb, line 36</span>
|
369
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parse_output</span>( <span class="ruby-identifier">task_output</span> )
|
370
|
+
<span class="ruby-ivar">@output</span> = <span class="ruby-constant">TestOutput</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">task_output</span>.<span class="ruby-identifier">dup</span>)
|
371
|
+
<span class="ruby-identifier">get_summary</span>
|
372
|
+
<span class="ruby-identifier">get_failures</span>
|
373
|
+
<span class="ruby-keyword">end</span></pre>
|
374
|
+
</div><!-- parse_output-source -->
|
375
|
+
|
376
|
+
</div>
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
</div><!-- parse_output-method -->
|
382
|
+
|
383
|
+
|
384
|
+
</section><!-- public-instance-method-details -->
|
385
|
+
|
386
|
+
</section><!-- 5Buntitled-5D -->
|
387
|
+
|
388
|
+
</div><!-- documentation -->
|
389
|
+
|
390
|
+
|
391
|
+
<footer id="validator-badges">
|
392
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
393
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
394
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
395
|
+
</footer>
|
396
|
+
|