test-output-parser 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.
@@ -1,192 +1,6 @@
1
- $ git clone git://localhost/ThoughtWorksInc/gnocci .
2
- Cloning into '.'...
3
- Checking connectivity... done
4
- Command git clone git://localhost/ThoughtWorksInc/gnocci . exited successfully with status 0.
5
-
6
- $ git checkout master
7
- Already on 'master'
8
- Command git checkout master exited successfully with status 0.
9
-
10
- $ git reset --hard ab58c045db121dfde023ccef7a684ab33e2dbd1d
11
- HEAD is now at ab58c04 Move mixlib-shellout dep from Akshay's personal account to ThoughtWorksInc
12
- Command git reset --hard ab58c045db121dfde023ccef7a684ab33e2dbd1d exited successfully with status 0.
13
-
14
- $ git submodule update --init
15
- Command git submodule update --init exited successfully with status 0.
16
-
17
- $ git remote set-url --push origin 'git@github.com:ThoughtWorksInc/gnocci'
18
- Command git remote set-url --push origin 'git@github.com:ThoughtWorksInc/gnocci' exited successfully with status 0.
19
-
20
- $ export SNAP_CI=true
21
- $ export CI=true
22
- $ export LANG=en_US.UTF-8
23
- $ export LC_ALL=en_US.UTF-8
24
- $ export SNAP_PIPELINE_COUNTER=76
25
- $ export SNAP_STAGE_NAME=FastFeedback
26
- $ export SNAP_BRANCH=master
27
- $ export SNAP_COMMIT=ab58c045db121dfde023ccef7a684ab33e2dbd1d
28
- $ export SNAP_COMMIT_SHORT=ab58c04
29
-
30
- $ bundle install --standalone --path bundle --local
31
- Fetching git://github.com/ThoughtWorksInc/mixlib-shellout.git
32
- Resolving dependencies...
33
- Installing rake (10.1.0)
34
- Installing addressable (2.3.5)
35
- Installing ansi (1.4.3)
36
- Installing archive-tar-minitar (0.5.2)
37
- Installing cabin (0.6.1)
38
- Installing arr-pm (0.0.8)
39
- Installing json (1.8.0)
40
- Installing nokogiri (1.5.10)
41
- Installing uuidtools (2.1.4)
42
- Installing aws-sdk (1.25.0)
43
- Installing backports (3.3.5)
44
- Using bundler (1.3.5)
45
- Installing ffi (1.9.0)
46
- Installing childprocess (0.3.9)
47
- Installing clamp (0.6.1)
48
- Installing diff-lcs (1.2.4)
49
- Installing http_parser.rb (0.5.3)
50
- Installing ftw (0.0.36)
51
- Installing fpm (0.4.42)
52
- Using gnocci (0.0.1) from source at .
53
- Installing mixlib-cli (1.3.0)
54
- Installing mixlib-config (2.0.0)
55
- Using mixlib-shellout (1.2.0) from git://github.com/ThoughtWorksInc/mixlib-shellout.git (at master)
56
- Installing rspec-core (2.14.5)
57
- Installing rspec-expectations (2.14.3)
58
- Installing rspec-mocks (2.14.3)
59
- Installing rspec (2.14.1)
60
- Installing tagged_logging (0.1.2)
61
- Updating files in vendor/cache
62
- Your bundle is complete!
63
- It was installed into ./bundle
64
- Command bundle install --standalone --path bundle --local exited successfully with status 0. Took 17.49 seconds.
65
-
66
- $ bundle exec rake spec
67
- /opt/local/ruby/2.0.0-p247/bin/ruby -S rspec spec/unit/artifact_spec.rb spec/unit/command_spec.rb spec/unit/console_log_artifact_spec.rb spec/unit/duration_formatter_spec.rb spec/unit/git_spec.rb spec/unit/mode/ci_spec.rb spec/unit/mode/pull_spec.rb spec/unit/mode/push_spec.rb spec/unit/run_list_spec.rb spec/unit/stage_spec.rb --format documentation
68
-
69
- Gnocci::Artifact
70
- should create artifact tarball beginning at the artifact basepath
71
- round robin test, push and pull should restore artifacts to original location
72
- #fetch_from_storage_location
73
- should copy the artifacts from the artifact path to the current dir
74
- should abort when the fetch fails
75
- #push_to_storage_location
76
- should push the artifacts to the right path
77
- should abort when the push fails
78
-
79
- Gnocci::Command
80
- should run the command and write the command to console log
81
- should write the command output to console log
82
- should fail with an exception when command fails
83
- should display the duration of a command run when requested
84
- should not display the duration of a command run when not requested
85
- should write the exit code when command executes but fails with error
86
- should write the stderr to console log in case command does not exist and prints to stdout
87
- should write signal to the stderr when the command is SIGHUP 'ed
88
- should write signal to the stderr when the command is SIGINT 'ed
89
- should write signal to the stderr when the command is SIGKILL 'ed
90
- should write signal to the stderr when the command is SIGPIPE 'ed
91
- should write signal to the stderr when the command is SIGALRM 'ed
92
- should write signal to the stderr when the command is SIGTERM 'ed
93
- should write signal to the stderr when the command is SIGXCPU 'ed
94
- should write signal to the stderr when the command is SIGXFSZ 'ed
95
- should write signal to the stderr when the command is SIGVTALRM 'ed
96
- should write signal to the stderr when the command is SIGPROF 'ed
97
- should write signal to the stderr when the command is SIGILL 'ed
98
- should write signal to the stderr when the command is SIGTRAP 'ed
99
- should write signal to the stderr when the command is SIGABRT 'ed
100
- should write signal to the stderr when the command is SIGFPE 'ed
101
- should write signal to the stderr when the command is SIGSYS 'ed
102
- should not write signal to the stderr when the command is SIGQUIT 'ed
103
-
104
- Gnocci::ConsoleLogArtifact
105
- #push_to_storage_location should push console log to storage_path for s3 push later
106
-
107
- Gnocci::DurationFormatter
108
- format duration
109
- < 1
110
- returns '0.xxxxx seconds' formatted string
111
- > 1 and < 60
112
- returns 'xx.xx seconds' formatted string
113
- > 60 and < 120
114
- returns 'x minute xx.xx seconds' formatted string
115
- > 120 and < 300
116
- returns 'x minutes xx.x seconds' formatted string
117
- > 300
118
- returns 'x minutes xx seconds' formatted string
119
- = 61
120
- returns 'x minute x second' formatted string
121
- = 1
122
- returns 'x second' formatted string
123
- format seconds
124
- uses passed in precision if specified unless result is 0
125
- sub second times
126
- returns 5 digits of precision
127
- strips off trailing zeroes beyond sub-second precision
128
- 0
129
- strips off trailing zeroes
130
- > 1
131
- strips off trailing zeroes
132
- second and greater times
133
- returns 2 digits of precision
134
- returns human friendly elasped time
135
-
136
- Gnocci::Git
137
- #run
138
- on command failure
139
- should fail with the right message
140
- .git directory does not exist
141
- should perform a git clone and reset
142
- .git directory exists
143
- should perform a git pull and reset
144
-
145
- Gnocci::Mode::CI
146
- #run
147
- should perform git operations and run the stage
148
-
149
- Gnocci::Mode::Pull
150
- should tell current stage to pull artifacts
151
-
152
- Gnocci::Mode::Push
153
- should tell current stage to push all artifacts
154
-
155
- Gnocci::RunList
156
- should initialize cli config properly
157
- should parse git info
158
- should parse pipelines and stages
159
-
160
- Gnocci::Stage
161
- #run
162
- should run tasks in order
163
- should set the right env for the command
164
- should give preference to user set environment vars over snap declared vars
165
- with artifacts
166
- should fetch artifacts from previous stages and push current artifacts to temp location
167
- should run tasks in order
168
-
1
+ $ rspec
169
2
  Finished in 3.14 seconds
170
3
  58 examples, 0 failures
171
- /opt/local/ruby/2.0.0-p247/bin/ruby -S rspec spec/integration/artifact_s3_spec.rb spec/integration/console_log_artifact_s3_spec.rb spec/integration/gnocci_spec.rb spec/integration/s3_delete_spec.rb --format documentation
172
-
173
- Gnocci::Artifact
174
- #push_to_s3
175
- should push the artifacts to the right path
176
- should error out and refuse to push to s3 if the storage path does not contain anything
177
- should fetch and unpack the artifacts into the storage path
178
-
179
- Gnocci::ConsoleLogArtifact
180
- #push_to_s3 should push console log to s3 from the local storage
181
-
182
- Gnocci
183
- should switch to repo directory
184
- should take a run list, artifact path and a stage name and run all tasks.
185
- should set default environment variables
186
- should fail if any task fails and create artifacts
187
-
188
- Gnocci::Mode::Delete
189
- should delete all artifacts for the specified project from s3
190
4
 
191
5
  Finished in 11.98 seconds
192
6
  9 examples, 0 failures
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-output-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akshay Karle
@@ -75,7 +75,7 @@ files:
75
75
  - spec/fixtures/sample-junit-output.txt
76
76
  - spec/fixtures/sample-rspec-output.txt
77
77
  - spec/spec_helper.rb
78
- - spec/test_count_spec.rb
78
+ - spec/test_output_parser_spec.rb
79
79
  - test-output-parser.gemspec
80
80
  homepage: ''
81
81
  licenses:
@@ -106,4 +106,4 @@ test_files:
106
106
  - spec/fixtures/sample-junit-output.txt
107
107
  - spec/fixtures/sample-rspec-output.txt
108
108
  - spec/spec_helper.rb
109
- - spec/test_count_spec.rb
109
+ - spec/test_output_parser_spec.rb