Comments (4)
I didn't understand your question. Do you know how can I create a new file inside feature folder? Am I correct?
from cleaners.
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.
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.
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)
- Use responders gem FTW
- Are we forgetting to test? HOT 1
- How can we log in? HOT 3
- Which postgres are you guys using? HOT 15
- Milestones HOT 8
- Tasks CRUD HOT 25
- Customer CRUD HOT 11
- Vehicle CRUD HOT 4
- Associate a Vehicle to one Customer HOT 8
- Service CRUD HOT 8
- Should we have a merger? HOT 4
- Tests should be country isolated HOT 28
- Fix hard coded labels on views
- Address CRUD HOT 8
- Run rspec features for available languages HOT 8
- Need to create a database model HOT 4
- Addresses, states, countries HOT 8
- Making public this repo requires licensing HOT 2
- Rake:seed generates more records if called n times HOT 6
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 cleaners.