Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joefiorini/middleman-cucumber
https://github.com/joefiorini/middleman-cucumber
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joefiorini/middleman-cucumber
- Owner: joefiorini
- License: mit
- Created: 2012-08-06T23:18:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-06T23:19:43.000Z (over 12 years ago)
- Last Synced: 2024-04-14T09:06:42.207Z (9 months ago)
- Language: Ruby
- Size: 99.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# It's like Cucumber-Rails, but for Middleman
This little library enables you to run Cucumber features against your Middleman app. Why would you ever use Cucumber to test a static site? If your "static" site is full of Javascript processing, you might like it.
To use, add `middleman-cucumber` to your `Gemfile` in your test group, or just:
gem install middleman-cucumber
If you aren't using bundler, be sure to `require 'middleman-cucumber'` in `features/support/env.rb`.
This also adds a test environment to Middleman, so if you need to do any configuration specific to your tests you can just:
```ruby
configure :test do
# Use testing API for Cucumber tests
map "/api" do
use TestingApi
end
end```
Good luck! Please let me know if you run into any issues by creating an [issue](/d-i/middleman-cucumber/issues).