busser-pester 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE +14 -0
- data/README.md +53 -0
- data/Rakefile +2 -0
- data/busser-pester.gemspec +24 -0
- data/lib/busser/pester.rb +7 -0
- data/lib/busser/pester/version.rb +5 -0
- data/lib/busser/runner_plugin/pester.rb +34 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 75173177ce652b78cc9c2ca1560c12d37fbf1585
|
4
|
+
data.tar.gz: 25dcfb8f7d18de625bc83f39119781fd2b160ec2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 55a50dde4643c4d343543676b72ceec0bf54f810af4a5e5bf1202015983d5ca6a65238227b8e6e6b9fa02ebd321503bf4f26c8bf3b4f3fa798c262f40e147329
|
7
|
+
data.tar.gz: 2abd5cb6b89927c711d930cfad6288e31f2f2d3879b2d4ebbcad2221d1ebb6dfebedb85c52e995f97b6d3bae3946054bf757145610614cdf13ef707610bf43f0
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Author:: Jay Mundrawala (<jdmundrawala@gmail.com>)
|
2
|
+
Copyright (c) 2014 Jay Mundrawala
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# <a name="title"></a> Busser::RunnerPlugin::Pester
|
2
|
+
|
3
|
+
A [Busser](https://github.com/test-kitchen/busser) runner plugin for [Pester](https://github.com/pester/Pester)
|
4
|
+
|
5
|
+
## <a name="installation"></a> Installation and Setup
|
6
|
+
|
7
|
+
This does not work yet. The only way to currently use this is to manually
|
8
|
+
`rake build` this gem, install it, run `busser plugin install pester --force_postinstall`,
|
9
|
+
and then `busser test pester`. And don’t forget to set BUSSER_ROOT.
|
10
|
+
|
11
|
+
Once there is a gem, busser will be able to install it automatically.
|
12
|
+
|
13
|
+
## <a name="usage"></a> Usage
|
14
|
+
|
15
|
+
Please put test files into [COOKBOOK]/test/integration/[SUITES]/pester/
|
16
|
+
|
17
|
+
```
|
18
|
+
-- [COOKBOOK]
|
19
|
+
`-- test
|
20
|
+
`-- integration
|
21
|
+
`-- default
|
22
|
+
`-- pester
|
23
|
+
`-- Your.Tests.ps1
|
24
|
+
```
|
25
|
+
|
26
|
+
## <a name="development"></a> Development
|
27
|
+
|
28
|
+
* Source hosted at [GitHub][repo]
|
29
|
+
* Report issues/questions/feature requests on [GitHub Issues][issues]
|
30
|
+
|
31
|
+
Pull requests are very welcome! Make sure your patches are well tested.
|
32
|
+
Ideally create a topic branch for every separate change you make. For
|
33
|
+
example:
|
34
|
+
|
35
|
+
1. Fork the repo
|
36
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
38
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
+
5. Create new Pull Request
|
40
|
+
|
41
|
+
## <a name="authors"></a> Authors
|
42
|
+
|
43
|
+
Created and maintained by [Jay Mundrawala][author] (<jdmundrawala@gmail.com>)
|
44
|
+
|
45
|
+
## <a name="license"></a> License
|
46
|
+
|
47
|
+
Apache 2.0 (see [LICENSE][license])
|
48
|
+
|
49
|
+
|
50
|
+
[author]: https://github.com/jdmundrawala
|
51
|
+
[issues]: https://github.com/jdmundrawala/busser-pester/issues
|
52
|
+
[license]: https://github.com/jdmundrawala/busser-pester/blob/master/LICENSE
|
53
|
+
[repo]: https://github.com/jdmundrawala/busser-pester
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'busser/pester/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "busser-pester"
|
8
|
+
spec.version = Busser::Pester::VERSION
|
9
|
+
spec.authors = ["Jay Mundrawala"]
|
10
|
+
spec.email = ["jdmundrawala@gmail.com"]
|
11
|
+
spec.summary = %q{A Busser runner plugin for Pester}
|
12
|
+
spec.homepage = ""
|
13
|
+
spec.license = "Apache 2.0"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency 'busser'
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Author:: Jay Mundrawala (<jdmundrawala@gmail.com>)
|
2
|
+
#
|
3
|
+
# Copyright (C) 2014, Jay Mundrawala
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'busser/runner_plugin'
|
18
|
+
|
19
|
+
class Busser::RunnerPlugin::Pester < Busser::RunnerPlugin::Base
|
20
|
+
postinstall do
|
21
|
+
banner "[pester] Installing PsGet"
|
22
|
+
run!("powershell.exe -NonInteractive -NoProfile -Command \"iex (new-object Net.WebClient).DownloadString('http://bit.ly/GetPsGet')\"")
|
23
|
+
banner "[pester] Installing Pester"
|
24
|
+
run!("powershell.exe -NonInteractive -NoProfile -Command \"Import-Module PsGet; Install-Module Pester\"")
|
25
|
+
end
|
26
|
+
|
27
|
+
def test
|
28
|
+
banner "[pester] Running"
|
29
|
+
pester_path = suite_path('pester').to_s
|
30
|
+
Dir.chdir(pester_path) do
|
31
|
+
run!("powershell.exe -NonInteractive -NoProfile -Command \"Import-Module Pester; Invoke-Pester -EnableExit\"")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: busser-pester
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jay Mundrawala
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: busser
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- jdmundrawala@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- busser-pester.gemspec
|
68
|
+
- lib/busser/pester.rb
|
69
|
+
- lib/busser/pester/version.rb
|
70
|
+
- lib/busser/runner_plugin/pester.rb
|
71
|
+
homepage: ''
|
72
|
+
licenses:
|
73
|
+
- Apache 2.0
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.2.2
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: A Busser runner plugin for Pester
|
95
|
+
test_files: []
|