cuke-island 0.0.3 → 0.0.5
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.
- data/README.rdoc +68 -0
- data/lib/cuke_island.rb +1 -1
- metadata +7 -4
data/README.rdoc
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
= Improved Standalone Cucumber Test Suite
|
2
|
+
|
3
|
+
== Introduction
|
4
|
+
|
5
|
+
We here at Carney+Co have not discovered how to limit ourselves to Rails only projects yet so we have come up with a simple generator gem that will create a standalone cucumber test inviroment in a folder of our choice. This is a kind of one stop method with the exception of some depdendencies to have the best and easiest to maniupulate test evnironment possible.
|
6
|
+
|
7
|
+
I have expanded this work from the original Author Todd Huss from which this project is forked. I basically added in some extra smarts from the internets to integrate webkit and chromedriver to the installation
|
8
|
+
|
9
|
+
http://blogs.kent.ac.uk/webdev/2012/08/02/using-capybara-webkit-with-cucumber-without-rails-or-rack/
|
10
|
+
|
11
|
+
And
|
12
|
+
|
13
|
+
http://collectiveidea.com/blog/archives/2011/09/27/use-chrome-with-cucumber-capybara/
|
14
|
+
|
15
|
+
I have also upgraded all the associated gems from the parent project so this install is far easier to get running out of the box
|
16
|
+
|
17
|
+
|
18
|
+
== From the original author
|
19
|
+
I've included a simple search.feature examples that uses Google. To switch to use your own development or staging server adjust the URL in features/support/env.rb. I have this example project setup to use Capybara with Webdriver (Selenium) but you can easily switch this to use Culerity or Webrat by editing features/support/env.rb.
|
20
|
+
|
21
|
+
Pull requests with updates/enhancements/bug fixes are always welcome!
|
22
|
+
|
23
|
+
== Project Layout
|
24
|
+
|
25
|
+
* features/*.feature : cucumber features
|
26
|
+
* features/step_definitions/web_steps.rb : generic steps that apply to all features
|
27
|
+
* features/step_definintions/[feature]_steps.rb : steps specific to an individual feature file
|
28
|
+
* support/env.rb : configures the driver and the hostname to use
|
29
|
+
|
30
|
+
== Prerequisites
|
31
|
+
|
32
|
+
* Ruby http://www.ruby-lang.org/en/downloads/
|
33
|
+
* Ruby Gems http://rubygems.org/
|
34
|
+
* Bundler: sudo gem install bundler rake
|
35
|
+
* qt - brew install qt
|
36
|
+
* ffi - brew install libffi
|
37
|
+
* chromedriver - brew install chromedriver
|
38
|
+
|
39
|
+
== Configuration
|
40
|
+
|
41
|
+
* Bundle Install runs automatically once the test environment is setup
|
42
|
+
|
43
|
+
== Setting up a test enviornmnet
|
44
|
+
|
45
|
+
* gem install cuke-island
|
46
|
+
* cuke-island <Directory to house testing files>
|
47
|
+
|
48
|
+
== Running Features
|
49
|
+
|
50
|
+
* To run all features: cucumber
|
51
|
+
* Or to add some options: rake
|
52
|
+
* To use bundled gems: bundle exec cucumber
|
53
|
+
* To run a specific feature: cucumber features/search.feature
|
54
|
+
|
55
|
+
== Debugging
|
56
|
+
|
57
|
+
* To debug a specific step call save_and_open_page within the step
|
58
|
+
|
59
|
+
== Additional Documentation
|
60
|
+
|
61
|
+
* http://cukes.info (for general cucumber information)
|
62
|
+
* http://github.com/jnicklas/capybara (for actions such as click_link, click_button, etc...)
|
63
|
+
|
64
|
+
== Contributors
|
65
|
+
|
66
|
+
* {Cucumber mailing list for the project structure}[http://groups.google.com/group/cukes/browse_thread/thread/297163800eaf2968?pli=1]
|
67
|
+
* {Todd Huss}[http://gabrito.com]
|
68
|
+
|
data/lib/cuke_island.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuke-island
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -108,12 +108,14 @@ dependencies:
|
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 2.13.0
|
111
|
-
description: Standalone generator for a
|
111
|
+
description: ! 'Standalone generator for a lightly configured cucumber capybara chromedriver
|
112
|
+
test enviroment: cuke-island <test folder>'
|
112
113
|
email: paul.scarrone@gmail.com
|
113
114
|
executables:
|
114
115
|
- cuke-island
|
115
116
|
extensions: []
|
116
|
-
extra_rdoc_files:
|
117
|
+
extra_rdoc_files:
|
118
|
+
- README.rdoc
|
117
119
|
files:
|
118
120
|
- bin/cuke-island
|
119
121
|
- lib/cuke_island.rb
|
@@ -122,6 +124,7 @@ files:
|
|
122
124
|
- features/search.feature.off
|
123
125
|
- features/step_definitions/web_steps.rb
|
124
126
|
- features/support/env.rb
|
127
|
+
- README.rdoc
|
125
128
|
homepage: https://github.com/ninjapanzer/cuke-capy-chrome
|
126
129
|
licenses: []
|
127
130
|
post_install_message:
|
@@ -145,5 +148,5 @@ rubyforge_project:
|
|
145
148
|
rubygems_version: 1.8.24
|
146
149
|
signing_key:
|
147
150
|
specification_version: 3
|
148
|
-
summary: Standalone webdriver
|
151
|
+
summary: Standalone webdriver generator
|
149
152
|
test_files: []
|