venom 0.0.4 → 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.md +20 -2
- data/lib/venom/generators/workshop.rb +4 -0
- data/lib/venom/generators/workshop/errors.rb +13 -0
- data/lib/venom/version.rb +1 -1
- metadata +3 -2
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Venom
|
2
2
|
|
3
|
-
|
3
|
+
The goal of Venom is to provide a project structure for using Symbiont, Watir-WebDriver, and Cucumber.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,25 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
The easiest way to use Venom would be to have it generate the default structure for you:
|
22
|
+
|
23
|
+
$ venom workshop project-spec
|
24
|
+
|
25
|
+
This command will create a workshop (project) structure with the directory name as project-spec. You can also indicate that you want a separate library (which I recommend).
|
26
|
+
|
27
|
+
$ venom workshop project-spec --library
|
28
|
+
|
29
|
+
What this does is allow the project to have a separate library (lib) directory. The reason you might do this is to keep your specifications (feature files) separate from various aspects of implementation.
|
30
|
+
|
31
|
+
You can also indicate that you want the browser to restart after every scenario is executed.
|
32
|
+
|
33
|
+
$ venom workshop project-spec --restart
|
34
|
+
|
35
|
+
This is as opposed to using the same browser for the entire feature file.
|
36
|
+
|
37
|
+
You can, of course, chain these options together.
|
38
|
+
|
39
|
+
$ venom workshop project-spec --library --restart
|
22
40
|
|
23
41
|
## Contributing
|
24
42
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Errors
|
2
|
+
class InvalidDataConditionError < StandardError
|
3
|
+
end
|
4
|
+
|
5
|
+
class NecessaryDataNotAvailableError < StandardError
|
6
|
+
end
|
7
|
+
|
8
|
+
class ContextCannotBeFulfilledError < StandardError
|
9
|
+
end
|
10
|
+
|
11
|
+
class DataValidationError < StandardError
|
12
|
+
end
|
13
|
+
end
|
data/lib/venom/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: venom
|
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:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: require_all
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/venom/generators/workshop/cucumber.yml
|
66
66
|
- lib/venom/generators/workshop/driver.rb.tt
|
67
67
|
- lib/venom/generators/workshop/env.rb.tt
|
68
|
+
- lib/venom/generators/workshop/errors.rb
|
68
69
|
- lib/venom/generators/workshop/hooks.rb.tt
|
69
70
|
- lib/venom/version.rb
|
70
71
|
- venom.gemspec
|