Giter Site home page Giter Site logo

Comments (4)

gonzalo-bulnes avatar gonzalo-bulnes commented on May 23, 2024 1

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.

gonzalo-bulnes avatar gonzalo-bulnes commented on May 23, 2024 1

Hi @gottfrois,

The v0.9.0 release ships the new dredd_command option. : )

from dredd-rack.

gonzalo-bulnes avatar gonzalo-bulnes commented on May 23, 2024

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.

gottfrois avatar gottfrois commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.