Comments (4)
Oh, of course, config.dredd_command
would be just fine.
The primary goal of Dredd::Rack is allowing Dredd to be used with the usual Ruby testing tools (Factory Girl in the first place). We're not there yet, but integrating the Dredd hooks support is the first concrete step towards that goal. As I see it, once that done, integrating with Factory Girl & Co should be relatively straightforward. (We can discuss about that in an independent issue.)
Back to the topic: I'll try to implement this feature as soon as I can - I'll stick to the API we defined - meanwhile, if you want to give ot a try, feel welcome to PR (no pressure) : )
from dredd-rack.
Hi @gottfrois,
The v0.9.0 release ships the new dredd_command option. : )
from dredd-rack.
Hi @gottfrois,
It makes a lot of sense. I'm thinking aloud, but I believe that could be a configuration option, something like:
Dredd::Rack.configure do |config|
config.app = Example::Application
config.dredd_executable = 'dredd' # or whatever String makes sense in your context
end
What do you think? Any better idea for the dredd_executable
option name?
The Dredd::Rack::RakeTask#dredd_available
method could be adapted to use the same configuration option.
I'm currently focused on adding support for hooks (using DreddHooks), but if you help me defining a reasonable API for this feature, I think the change is useful and small enough to be worth sneaking it in.
from dredd-rack.
Looks great or simply config.dredd_command
.
+1 for dredd hooks. I tried to figure out how to use them but no luck :( Ideally I would like to be able to use my factories (factory girl) inside dredd hooks, not sure "how" dredd can load the hooks + the rails env though :-/
from dredd-rack.
Related Issues (14)
- Task definition can't be in lib/tasks/ HOT 2
- Spaces in only tasks HOT 4
- InvalidCommandError when defining a simple `paths_to_blueprints` HOT 4
- Can't have spaces in headers without encapsulation as string. HOT 2
- Rake task always throwing InvalidCommandError for local api HOT 2
- Let's create a place where to discuss future API changes
- Add GitHub topics HOT 1
- The README should acknowledge that the main task is called `:dredd`, not `blueprint:verify`
- Support swagger files HOT 6
- Support Capybara 3 HOT 6
- Dredd::Rack should allow to write Dredd hooks in Ruby HOT 7
- Rake task does not load initializers HOT 3
- Rails applications that are served automatically always respond with HTTP 500 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dredd-rack.