Code Monkey home page Code Monkey logo

Comments (4)

fabianoalmeida avatar fabianoalmeida commented on August 17, 2024

I didn't understand your question. Do you know how can I create a new file inside feature folder? Am I correct?

from cleaners.

fraga avatar fraga commented on August 17, 2024

I'm curious to understand if you run a tool to automatically create feature specs, do you manually create a feature test or you use rake something, scaffold, etc?

from cleaners.

fabianoalmeida avatar fabianoalmeida commented on August 17, 2024

When I configured the app I defined this in application.rb:

# Customization which files will be created
config.generators do |g|
  g.stylesheets false
  g.javascripts false
  g.helper false
  g.view_specs false
  g.controller_specs false
  g.routing_specs false
  g.form_builder :simple_form_for
  g.test_framework :rspec, :view_specs => false, :fixture => false
  g.fixture_replacement :factory_girl, :dir => 'spec/factories'
end

However, I haven't found a configuration to do the same to feature specs. So, I create my feature specs manually.

When I'm writing this comment I thought: "this is logical". Feature spec represents the steps over the view, how our user could use the app with more ease, if the application will show a message... Whatever.

If we think as I mentioned above, we could have a page with more than one model and the logical to validate this page will be different to validate a model CRUD page, for example.

One example of it is spec/features/sign_in_spec.rb where I test the first page of the app, the login page. By the way, I didn't create a feature spec to address model because this model usually is inside another model. In other words, it depends what you want to test as a feature test.

So we could create it manually... I suppose! 😺

from cleaners.

fraga avatar fraga commented on August 17, 2024

yeah got it. It makes sense to me not to automatically generate feature specs. I was just trying to find something that we could leverage and create like an empty template so we could start from there...

from cleaners.

Related Issues (20)

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.