Questions tagged [fixture]

Fixed state(s) for software under test, also known as text context

In software testing, a test fixture is a fixed state of the software under test used as a baseline for running tests; also known as the test context. It may also refer to the actions performed in order to bring the system into such a state.

It is often used in and .

Examples of fixtures:

  • Loading a with a specific, known set of
  • Erasing a hard disk and installing a known clean operating system installation
  • Copying a specific known set of files
  • Preparation of input data and set-up/creation of fake or objects
  • Software used to systematically run reproducible tests on a piece of software under test is known as a test; part of its job is to set up suitable test fixtures.

Source

132 questions
0
votes
1 answer

c++ Box2D moving and rendering Dynamic bodies in a vector

I have created a game which uses a color coded image to create different bodies/fixtures. So for example if the pixel is green it will get stored into an array as 7 and then the program will create a body called enemy. If there are 10 green pixels,…
MichaelN
  • 1
  • 1
0
votes
0 answers

C++ Box2D Iterate through vector of bodies and deleting

I have created a game which uses a color coded image to create different bodies/fixtures. So for example if the pixel is red it will get stored into an array as 7 and then the program will create a body called jewel. If there are 10 red pixels, 10…
MichaelN
  • 1
  • 1
0
votes
0 answers

How do you get the loaded entity from a fixture DataSet class?

I am using fixture to load testing data using ndb for my Google App Engine project using this patch. Inside my unit tests I often need to reference the underlying entity which causes me to do things like: # MyEntityClass is an ndb.Model subclass #…
Josh J
  • 6,813
  • 3
  • 25
  • 47
0
votes
1 answer

newbie: Embercli - ember - model - finding data

Learning ember and tryign to figure out why this doesn't work.... I have a model like this: import DS from 'ember-data'; var Class = DS.Model.extend({ theclassname: DS.attr('string'), users: DS.hasMany('user', {async:…
Vida
  • 480
  • 7
  • 18
0
votes
0 answers

Dump sqlalchemy objects/fixtures as insert statements

I'm programmatically generating test data, both as sqlalchemy ORM objects, and as fixtures. However, other parts of the application need to have the test data pre-loaded in the database, as sql INSERT statements (don't question this - it's a fixed…
Marcin
  • 48,559
  • 18
  • 128
  • 201
0
votes
1 answer

ember: use fixture adapter and websocket

My interface is a curve that changes everytime the server sends to ember a new value of the curve's parameter, and that's happen every second probably.it's very dynamic So i'm trying to receive the data using a websocket from my golang server. to…
Farah
  • 75
  • 2
  • 8
0
votes
1 answer

ActiveRecord::Fixture::FormatError: a YAML error occurred parsing

I 'm trying to make a of my first application on ruby ... Thats's my test file require File.dirname(__FILE__) + '/../test_helper' class SupplierTest < ActiveSupport::TestCase fixtures :suppliers def test_name …
user3447780
  • 97
  • 1
  • 6
0
votes
1 answer

Having trouble mapping relationships via fixtures and models with ember-data

I'm trying to learn emberJS and I figured a good starting example would be to map the relationships between the various elements in an RPG. Each element has a name and has multiple damage modifiers, depending on what element it is being used…
Ray
  • 488
  • 4
  • 11
0
votes
1 answer

How to change model location for fixture in CakePHP

I am writing a custom plugin for the awesome framework CakePHP, called: TableTool. My plugin has a default folder structure, created by cake bake: -app (some subfolders omitted) --plugin …
erwineberhard
  • 309
  • 4
  • 17
0
votes
1 answer

How can I replace a Tempfile with FactoryGirl?

I'm testing a CSV uploader with rspec and I've saved a test file in /spec/fixtures that I pull into my tests with fixture_file_upload: let(:file) do fixture_file_upload( Rails.root.join("spec/fixtures/chargeback_test.csv"), "text/csv" …
user341493
  • 414
  • 1
  • 7
  • 15
0
votes
1 answer

Will data be displayed after a new migration?

I am using django and have a migration that includes fixture to have some initial data loaded into the web app. I additionally have other data that has been added by users, that isn't included in the fixture. My question is this: if I create and…
sharataka
  • 5,014
  • 20
  • 65
  • 125
0
votes
1 answer

In Ruby, how to insert data on a DataMapper model created dynamically?

I'm trying to build a "fixture" feature for my Sinatra apps. I'm simply exporting databases to csv's with the name of the database, and using the filename as reference to access the class through datamapper. I know the database setup bellow is…
Manny
  • 43
  • 7
1 2 3
8
9