rabbit-slide--vim-test 2016.10.13
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.
- checksums.yaml +7 -0
- data/.rabbit +1 -0
- data/README.md +25 -0
- data/Rakefile +17 -0
- data/config.yaml +19 -0
- data/pdf/vim-test-vim-test.pdf +0 -0
- data/test.pdf +0 -0
- data/vim-test.md +69 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a01eaed880981352d22c56c1f8b0e62dc53a8c57
|
4
|
+
data.tar.gz: b30ea29871f4c92cd48d949c7c8197f9abf8253f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fb8696b4e9a270857dff3cad8a32987acb3316ac9c58f6c7f8a42a985e730883308770e5c1f1eb115b0b42d1372cf3faf8fa880aa831289c463602f7fbf1d750
|
7
|
+
data.tar.gz: b286b97dcdc3848a41f6888a260a785aedb439b87b7172abdd31f11109016e373d110939851f88d309267ad5da9a3a43f482d9d948d02892c5ade39d96c69090
|
data/.rabbit
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
vim-test.md
|
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Getting started with vim-test
|
2
|
+
|
3
|
+
Given at <http://vimberlin.de/october-2016-meetup>
|
4
|
+
|
5
|
+
|
6
|
+
## For author
|
7
|
+
|
8
|
+
### Show
|
9
|
+
|
10
|
+
rake
|
11
|
+
|
12
|
+
### Publish
|
13
|
+
|
14
|
+
rake publish
|
15
|
+
|
16
|
+
## For viewers
|
17
|
+
|
18
|
+
### Install
|
19
|
+
|
20
|
+
gem install rabbit-slide--vim-test
|
21
|
+
|
22
|
+
### Show
|
23
|
+
|
24
|
+
rabbit rabbit-slide--vim-test.gem
|
25
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rabbit/task/slide"
|
2
|
+
|
3
|
+
# Edit ./config.yaml to customize meta data
|
4
|
+
|
5
|
+
spec = nil
|
6
|
+
Rabbit::Task::Slide.new do |task|
|
7
|
+
spec = task.spec
|
8
|
+
# spec.files += Dir.glob("doc/**/*.*")
|
9
|
+
# spec.files -= Dir.glob("private/**/*.*")
|
10
|
+
# spec.add_runtime_dependency("YOUR THEME")
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Tag #{spec.version}"
|
14
|
+
task :tag do
|
15
|
+
sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
|
16
|
+
sh("git", "push", "--tags")
|
17
|
+
end
|
data/config.yaml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
id: vim-test
|
3
|
+
base_name: vim-test
|
4
|
+
tags: []
|
5
|
+
presentation_date: 2016/10/13
|
6
|
+
version: 2016.10.13
|
7
|
+
licenses: []
|
8
|
+
slideshare_id:
|
9
|
+
speaker_deck_id:
|
10
|
+
ustream_id:
|
11
|
+
vimeo_id:
|
12
|
+
youtube_id:
|
13
|
+
author:
|
14
|
+
markup_language: :markdown
|
15
|
+
name: Matthias Günther
|
16
|
+
email: matthias@wikimatze.de
|
17
|
+
rubygems_user:
|
18
|
+
slideshare_user:
|
19
|
+
speaker_deck_user:
|
Binary file
|
data/test.pdf
ADDED
Binary file
|
data/vim-test.md
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# Getting started with vim-test
|
2
|
+
|
3
|
+
author
|
4
|
+
: Matthias Günther
|
5
|
+
date
|
6
|
+
: 2016/10/13
|
7
|
+
|
8
|
+
|
9
|
+
# Why?
|
10
|
+
|
11
|
+
- run your tests with one command
|
12
|
+
- support for many test frameworks:
|
13
|
+
- rspec, vader, gotest, phpunit, pytest, ...
|
14
|
+
|
15
|
+
# Commands
|
16
|
+
|
17
|
+
- `:TestNearest`: Runs the test nearest to the cursor
|
18
|
+
- `:TestFile`: Test the whole file
|
19
|
+
- `:TestSuite`: Runs all tests
|
20
|
+
- `:TestLast`: Runs the last test command again
|
21
|
+
- `:TestVisit`: Jumps to the last executed test
|
22
|
+
|
23
|
+
|
24
|
+
# Strategies
|
25
|
+
|
26
|
+
- `dispatch`, `vimux`, `neovim`
|
27
|
+
- `make`, `tslime`, `vimproc`
|
28
|
+
|
29
|
+
|
30
|
+
# Defining strategies
|
31
|
+
|
32
|
+
- `let test#strategy = "dispatch"`
|
33
|
+
- or more granular:
|
34
|
+
|
35
|
+
let test#strategy = {
|
36
|
+
\ 'nearest': 'vimux',
|
37
|
+
\ 'suite': 'dispatch'
|
38
|
+
\}
|
39
|
+
|
40
|
+
|
41
|
+
# Chose strategy via commandline
|
42
|
+
|
43
|
+
:TestNearest -strategy=basic
|
44
|
+
|
45
|
+
|
46
|
+
# CLI options
|
47
|
+
|
48
|
+
:TestNearest --backtrace
|
49
|
+
|
50
|
+
or configure it:
|
51
|
+
|
52
|
+
let test#ruby#rspec#options = '-f html'
|
53
|
+
|
54
|
+
|
55
|
+
# Mappings
|
56
|
+
|
57
|
+
nmap <silent> <leader>t :TestNearest<CR>
|
58
|
+
nmap <silent> <leader>T :TestFile<CR>
|
59
|
+
nmap <silent> <leader>a :TestSuite<CR>
|
60
|
+
nmap <silent> <leader>l :TestLast<CR>
|
61
|
+
nmap <silent> <leader>g :TestVisit<CR>
|
62
|
+
|
63
|
+
|
64
|
+
# Alternative: plain dispatch
|
65
|
+
|
66
|
+
:Dispatch rspec %
|
67
|
+
:Dispatch bundle exec rspec
|
68
|
+
:execute "Dispatch rspec " . expand("%") . ":" . line(".")
|
69
|
+
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-slide--vim-test
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2016.10.13
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthias Günther
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rabbit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.2
|
27
|
+
description: Given at <http://vimberlin.de/october-2016-meetup>
|
28
|
+
email:
|
29
|
+
- matthias@wikimatze.de
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".rabbit"
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- config.yaml
|
38
|
+
- pdf/vim-test-vim-test.pdf
|
39
|
+
- test.pdf
|
40
|
+
- vim-test.md
|
41
|
+
homepage: http://slide.rabbit-shocker.org/authors//vim-test/
|
42
|
+
licenses: []
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.5.1
|
61
|
+
signing_key:
|
62
|
+
specification_version: 4
|
63
|
+
summary: Getting started with vim-test
|
64
|
+
test_files: []
|