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

Temporary Doctrine2 fixtures for testing with phpunit

I have an application built on Symfony2 + Doctrine2 which I want to create some tests for (using phpunit). For example …

testing symfony doctrine-orm phpunit fixtures
Doctrine 2. orm:schema-tool:update . Set start id

When I use ./bin/doctrine orm:fixtures:load to populate tables with sample data first migration sets auto incremental table …

php doctrine-orm fixtures
How do Django Fixtures handle ManyToManyFields?

I'm trying to load in around 30k xml files from clinicaltrials.gov into a mySQL database, and the way I …

django many-to-many models fixtures
How can I convert Python unittests to py.test when having global fixtures?

I do have a set of unit tests written using the Python's unittest module. They are using the setUpModule() function …

python fixtures pytest python-unittest xdist
pytest fixtures inside or outside class?

What is the difference if the fixture is inside or outside of Class(bla0, bla1)? @pytest.fixtures() def bla0() ... class …

fixtures pytest
pytest fixtures in a separate directory

I'm looking to create a pytest structure where I can separate the fixtures from the tests completely. The reason for …

python testing pytest fixtures
How can I load HABTM-with-foreign-key relationships in my fixtures?

I have the following two models: School and User, and a HABTM relationship between them, with a join table. In …

ruby-on-rails foreign-keys fixtures has-and-belongs-to-many