fixtures
Symfony unit test best practice
I would like to know what are the best practices to manage fixtures of unit tests. I have the feeling that I should write one fixture foreach unit test.[详细]
2023-02-13 06:15 分类:问答Doctrine: create fixtures for a certain table
Is it possible to create a fixtures yml file for a certain model from the data already stored in the database (e.g开发者_高级运维. like dump-data CLI but with specifying which data)?When loading fixtu[详细]
2023-02-13 04:32 分类:问答How to handle doctrine2 data fixtures (flat file)
I am looking at doctrine2 and how to handle data fixtures. I am especially interested in reading them from f开发者_Go百科lat files (csv, yaml, xls).[详细]
2023-02-13 00:54 分类:问答Rails fixtures magical columns doesn't work anymore
created some fixtures yesterday and they worked great. Today i\'ll tried to rerun these fixtures, but there seems to be a problem with the magical columns. Here\'s an example fixture:[详细]
2023-02-12 22:46 分类:问答What's the best way to optimise the fixture-loading part of Django tests?
my Djan开发者_如何学Cgo tests run really slowly, but it\'s not the test\'s fault. At the moment, the whole process takes 14s, but only 0.1s of that is running tests. The first few seconds are creatin[详细]
2023-02-11 05:45 分类:问答Loading Django sites (contrib.sites) in initial_data
Is there a way to load some initial sites (from the sites framework) thorough initial_data fixtures, so that I can avoid setting them up in each of my tests?[详细]
2023-02-10 10:42 分类:问答symfony doctrine:build --all --and-load WITHOUT LOSING RECORDS IN DATABASE
I am new to Symfony+Doctrine, but fairly experienced with web application development in general (mostly using Zend Framework). I have started a new project using Symfony, and I\'m loving it.[详细]
2023-02-09 13:54 分类:问答Rails Functional Test With Fixtures Failing with "Mysql::Error: Duplicate entry"
So we have the default scaffold tests for the User model, specifically: test \"should create user\" do[详细]
2023-02-07 19:31 分类:问答How to use test fixtures with other framework then unit tests
I\'m using lettuce framework for testing and i would like to run tests with fresh database with some test fixture开发者_运维知识库s loaded. similarly to unit tests run, when test fixtures are defined[详细]
2023-02-05 01:07 分类:问答Does the value "NO" gets parsed as "False" in MySQL when entered through Django's fixtures?
I\'m currently using Django 1.2.4 and MySQL 5.1 on Ubuntu 9开发者_JS百科.10.The model is: # project/cream/models.py[详细]
2023-02-04 01:23 分类:问答