integra 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +13 -5
- data/lib/integra/commands.rb +5 -3
- data/lib/integra/template/rspec +2 -2
- data/lib/integra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ab57b047463589dcfd550fcd362f59c62b3a106
|
4
|
+
data.tar.gz: a38e442a774b3d617dd7e31f583dd8c63c84fc80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88f6a51aecfe6e7f10f0adf87b868416fff308279bf09f21dbda1c22842c69aafd0da153c105c395a361f82adfe24428d9d804bd0414f9d2f0fe64d47d4784a5
|
7
|
+
data.tar.gz: 9f4a92ccb28deb13ad295ce499d6e19429883fb3b8bead1cad7a8047c29ff8494f058829baa475b75b70f271ae9b2dee309ad093a5404d28315eb7a7b68ed90c
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
A nice set of defaults for integration tests, no matter what language your
|
4
4
|
application is written in.
|
5
5
|
|
6
|
-
##
|
6
|
+
## System requirements
|
7
7
|
|
8
8
|
- [ruby >= 1.9.2](http://rvm.io/)
|
9
9
|
- [phantomjs](https://github.com/ariya/phantomjs)
|
@@ -21,18 +21,26 @@ Goto your project root and run the initializer:
|
|
21
21
|
$ cd ~/Projects/my-nice-project/
|
22
22
|
$ integra init localhost
|
23
23
|
|
24
|
+
Running the tests:
|
25
|
+
|
26
|
+
$ integra
|
27
|
+
|
28
|
+
Running the tests with a custom driver:
|
29
|
+
|
30
|
+
$ integra --driver=selenium
|
31
|
+
|
24
32
|
For custom [gherkin](https://github.com/cucumber/gherkin) language support, use
|
25
33
|
the `--lang=` option:
|
26
34
|
|
27
35
|
$ integra init --lang=pt
|
28
36
|
|
29
|
-
##
|
37
|
+
## Default toolset
|
30
38
|
|
31
|
-
- [turnip](https://github.com/jnicklas/turnip/)
|
32
|
-
- [turnip_formatter](https://github.com/gongo/turnip_formatter/)
|
33
|
-
- [capybara](https://github.com/jnicklas/capybara)
|
34
39
|
- [rspec](https://github.com/rspec/rspec)
|
40
|
+
- [capybara](https://github.com/jnicklas/capybara)
|
35
41
|
- [poltergeist](https://github.com/jonleighton/poltergeist)
|
42
|
+
- [turnip](https://github.com/jnicklas/turnip/)
|
43
|
+
- [turnip_formatter](https://github.com/gongo/turnip_formatter/)
|
36
44
|
|
37
45
|
## Contributing
|
38
46
|
|
data/lib/integra/commands.rb
CHANGED
@@ -25,17 +25,19 @@ module Integra
|
|
25
25
|
data.gsub!('{app_host}', Integra.config.app_host.to_s)
|
26
26
|
f.write(data)
|
27
27
|
end
|
28
|
-
Integra.logger.action('create', "
|
28
|
+
Integra.logger.action('create', ".#{file}")
|
29
29
|
end
|
30
30
|
|
31
31
|
# Create 'features' and 'support' directories
|
32
32
|
FileUtils.mkdir_p(File.expand_path('./features/support/'))
|
33
|
+
FileUtils.mkdir_p(File.expand_path('./features/reports/'))
|
34
|
+
Integra.logger.action('create', 'features/reports/')
|
33
35
|
|
34
36
|
# Sample feature
|
35
37
|
FileUtils.cp(Integra.gem_libdir + "/template/i18n/sample.#{Integra.config.lang}.feature", File.expand_path('./features/sample.feature'))
|
36
|
-
Integra.logger.action('create', '
|
38
|
+
Integra.logger.action('create', 'features/sample.feature')
|
37
39
|
|
38
|
-
support_dest = '
|
40
|
+
support_dest = 'features/support/'
|
39
41
|
Dir.glob(Integra.gem_libdir + "/template/features/support/*.rb").each do |source|
|
40
42
|
unless File.exists?(File.expand_path("#{support_dest}#{File.basename(source)}"))
|
41
43
|
FileUtils.cp(source, File.expand_path(support_dest))
|
data/lib/integra/template/rspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
--default_path features
|
2
2
|
--color
|
3
3
|
--format progress
|
4
|
-
--format documentation -o
|
5
|
-
--format RSpecTurnipFormatter -o
|
4
|
+
--format documentation -o features/reports/integration.txt
|
5
|
+
--format RSpecTurnipFormatter -o features/reports/integration.html
|
6
6
|
|
data/lib/integra/version.rb
CHANGED