Top "Fixtures" questions

Fixtures are scopes used for running tests which isolate each test from global namespace pollution and side-effects from previous tests in order to avoid false positives and false negatives

Symfony2 execute SQL file in Doctrine Fixtures Load

I'm migrating an old web app based on SQL Server and ASP to Symfony2 and MySQL. I made some queries …

mysql sql symfony doctrine-orm fixtures
How do I generate Symfony fixtures YML from exising database data?

I was wondering if anyone knew how to generate a fixture.yml from data that is already existing in the …

database build symfony1 yaml fixtures
What is the difference between "rake db:seed" and rake db:fixtures:load"

I am new to Ruby and Rails and am curious about something. In two different tutorials I am looking at …

ruby-on-rails rake fixtures
Generate Symfony2 fixtures from DB?

Is it possible to generate fixtures from an existing DB in Symfony2/Doctrine? How could I do that? Example: I …

doctrine-orm fixtures symfony
Automatic associations in ruby on rails fixtures

As described in this article, I am using automatic associations in fixtures. For example, if a region object has a …

ruby-on-rails ruby fixtures
Rails unit testing doesn't load fixtures

rake test:units fails in my current application, because the needed data of the fixtures is missing. If I'm loading …

ruby-on-rails unit-testing fixtures
django fixtures DateTimeField runtimeWarning

I've set some basic fixtures for my django project. One of the records inserted into the database looks like the …

django runtime-error fixtures
factory_girl + rspec doesn't seem to roll back changes after each example

Similar to the problem described here: http://rpheath.com/posts/411-how-to-use-factory-girl-with-rspec in Short (shorten'd code): spec_helper: config.use_transactional_…

ruby-on-rails ruby rspec fixtures factory-bot
How to create fixtures (for a Devise user) as a yml.erb in rails (4.1.5)?

Update 3: It seems like this is specific to fixtures in a .yml.erb - even if I have no templated …

ruby-on-rails erb fixtures
Factory Girl + Mongoid embedded documents in fixtures

Let’s say you have the following mongoid documents: class User include Mongoid::Document embeds_one :name end class UserName …

ruby-on-rails embed mongoid factory-bot fixtures