speckle 0.1.25 → 0.1.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWRlOTc3OThlNDE0NzViYzlmNjE5NjkyYzMxMTFiN2M5OWVlNWE3NA==
4
+ Mjg4ZTg5NmMyMTIyNjIxY2Y2ZjZlMjNmNDU2MTE5ODYxZWFhMTM5MA==
5
5
  data.tar.gz: !binary |-
6
- ZGM5MmFkMGNhYTRmMzg0MWMxMTk4NjM5NDI3OWE1YjU0MjAwZGI2Zg==
6
+ OGVkYzU5NjI0YTE0MDI2N2Q0N2FhZGY0YjE3MDY1ODg4MmE5NDUxYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjUzMzQwMWI4ZmU5OThlMmM1ZTQ5MTA5YjRmMzlmMGE3MjEyYzY5Y2Y3ZGEy
10
- YjlhMzk3OWRhYTJhYjBhYjhiYTY4YWYyYTc4OTIzNzU2ZWNhYWI5ODcyN2Vh
11
- YmQ0NzhmOTJhODM0YjhhYjk4Y2ZhNGFjNjk2OTQ3MjIzOGM3NmM=
9
+ YTFjOTU2YmZjNmNhOTlhNTdjZjc4NTlkYjQwMjhmN2E2NjMwMWFmYjAxYTQ4
10
+ YWUzMWQ1ODdmNGRiNmNiMzU4ZmYyYWExMDNlOTQ2ZDU0MWU3OTMzNGZlOGNl
11
+ ZDA5MTgzYTAwY2RiODhlNWM1OTUwMGMzMTIxMWU4ZDNmMjYwMDQ=
12
12
  data.tar.gz: !binary |-
13
- ZDJhZjIzZDJlNWY1NDVjZjg1ZDU4MTU4MmQ4NTY4NDQxYTY0ZjUwMjU3NGZl
14
- MjE1ZWNmMDM2MDdiYmZiN2JkYTU2N2Q5ZDA0YWViMzUwNDc3NzI0NmVjYjAw
15
- MWRjMTBhZDdhMTE5ZjEzZDNjNzAyNTFkYjNmMWE2MTU1YjUxMzA=
13
+ NmI0YjQ1YjVkYzRiMTFiM2FiODE4ZWExZTI0NTk3NTExODM0ZTU3MDUwMDA2
14
+ ODE3MTdmYTY3Yjg1YzdmYzI0NjRiMjZhZmJlZTU4MTUzNThkNDZlYWIyZTY1
15
+ ODk2NmY1Y2IzZGM2MjllN2Q0MWI4Y2EyMTU5OWYzMDFjMWNlNmM=
data/README.md CHANGED
@@ -249,6 +249,36 @@ VariousErrorsSpec #it has unknown function
249
249
  at <SNR>144_s:VariousErrorsSpec_it_has_unknown_function, line 2
250
250
  ```
251
251
 
252
+ ## Profiling
253
+
254
+ Speckle integrates with Vim's built-in profiler. Use the `-p` or `--profile`
255
+ switches to turn on profiling. When profiling is turned on, Speckle prints a
256
+ summary of the *Total Time* and *Self Time* of functions executed in your
257
+ tests as shown below,
258
+
259
+ ```log
260
+ ------------------------------------------------------------------------------
261
+ PROFILE SUMMARY
262
+ ------------------------------------------------------------------------------
263
+
264
+ FUNCTIONS SORTED ON TOTAL TIME
265
+ count total (s) self (s) function
266
+ 111 1.305531 0.003775 <SNR>212_s:CommandRegistry_run_command()
267
+ 605 1.268269 0.008920 <SNR>181_expect()
268
+ 98 1.221755 0.002080 <SNR>212_s:CommandRegistry_run_action()
269
+ 81 1.068915 0.001752 <SNR>222_s:CommandRegistry_run_action()
270
+ 81 1.066899 0.002717 <SNR>222_s:CommandRegistry_run_command()
271
+ 9 0.893186 0.000369 <SNR>222_s:GetFileCommandSpec_verify_gf()
272
+ 42 0.827668 0.000382 <SNR>212_s:Controller_process()
273
+ 41 0.764384 0.000386 <SNR>222_s:Controller_process()
274
+ ```
275
+
276
+ The full profile containing further details like per-line execution times
277
+ can be viewed in the file `build/speckle.profile`.
278
+
279
+ This option works with all the isolated testing options below. Profiling can
280
+ be used alongside `--grep` and `--tag` to only profile specific tests.
281
+
252
282
  ## Isolated Testing
253
283
 
254
284
  Speckle can be made to run only specific tests using the `--grep` option. For example, to only run tests in the `spec/models` folder use
@@ -280,11 +310,13 @@ Options:
280
310
  -I, --libs <libs> Specify additional riml library path(s)
281
311
  -g, --grep <pattern> Only run tests matching the pattern
282
312
  -i, --invert Inverts --grep matches
313
+ --tag <tag> Only run tests matching tag
283
314
  -r, --reporter <reporter> Specify the reporter to use (spec, min, dot, tap, fivemat)
284
315
  -b, --bail Bail on first test failure
285
316
  -w, --watch Watch tests for changes
286
317
  -m, --vim <vim> Vim program used to test, default(vim)
287
318
  -s, --slow-threshold <ms> Threshold in milliseconds to indicate slow tests
319
+ -p, --profile Profiles the tests run
288
320
  -k, --skip-vimrc Does not load ~/.vimrc file
289
321
  -C, --no-colors Disable color output
290
322
  -v, --verbose Display verbose output
@@ -1,3 +1,3 @@
1
1
  module Speckle
2
- VERSION = "0.1.25"
2
+ VERSION = "0.1.26"
3
3
  end
data/speckle.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.required_ruby_version = '>= 1.9.2'
23
23
 
24
- s.add_dependency 'riml', '~> 0.3.4'
24
+ s.add_dependency 'riml', '~> 0.3.5'
25
25
  s.add_dependency 'rake', '~> 10.1.0'
26
26
  s.add_dependency 'bundler', '~> 1.3'
27
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speckle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darshan Sawardekar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-20 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riml
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.4
19
+ version: 0.3.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.4
26
+ version: 0.3.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement