Box2D - How can I know when 2 Fixtures are touching?

I'm just curious, in the case that I have a body that has 2 or more fixtures in it that are not "joined together", how can I determine this definitively in code? Here is an example of what I...

android test fixtures

I am working on an android app and I have created a new test project for unit tests. Where's recommended to store the test fixtures (like xml files and the like) and what's the proper way to access it ?

AutoFixture - configure fixture to limit string generation length

When using AutoFixture's Build method for some type, how can I limit the length of the strings generated to fill that object's string properties/fields?

py.test - how to use a context manager in a funcarg/fixture

Closely related: In python, is there a good idiom for using context managers in setup/teardown I have a context manager that is used in tests to fix the time/timezone. I want to have it in a...

ExecJS::RuntimeError Errors when creating new Ruby on Rails. Crash after controller

I'm having an issue creating a new Rails app. I created a test to and copied my command prompt to let you see what happens. The story is this: I can make the app, boot up the test server, and get...

Symfony Login error - Invalid credentials

I have a form that i want to log a user in - i have loaded fixtures into the database but when i have tried following tutorials i keep getting bad credentials or invalid credentials i will include...

'concurently' is not recognized as an internal or external command, operable program or batch file

I try to run angular 2 project. There is package.json: { "name": "angular2-quickstart", "version": "1.0.0", "scripts": { "start": "concurrently \"npm run tsc:w\" \"npm run lite\" ", "tsc":...

Django test VS pytest

I am new to django `unittest` and `pytest`. However, I started to feel that `pytest` test case is more compact and clearer. Here is my test cases: class OrderEndpointTest(TestCase): def...

Python test fixture to run a single test?

I'm looking for something like ruby rspec's focus metadata or elixir's mix tags to run a single python test. Ruby RSpec Example: # $ rspec spec it 'runs a single test', :focus do expect(2).to...

Django's TestCase doesn't seem to clean up database between tests

I have written a test to check the integrity of the data I keep in my fixtures. It is a class inheriting from django.tests.TestCase, and it declares the fixtures it needs. When I run the methods...

Is there a Javascript equivalent to pytest's parameterized fixtures?

In pytest you can set up fixtures that can have multiple different values. These are called "parameterized fixtures". A test that uses these fixtures will be run with all possible combinations of...

Angular 5 testing: how to get a reference to the child component

I'm trying to test the interaction between a host component and a child component in an Angular application. I don't know how to get a reference to the child component created when the parent gets...

Yii2 create user table

I installed Yii 2 with advanced application template to my localhost everything is fine except command migrate when I use cmd to create user table it doesn't do any thing. My code in main-local :...

Async fixtures with pytest

How do I define async fixtures and use them in async tests? The following code, all in the same file, fails miserably. Is the fixture called plainly by the test runner and not...

The following constructor parameters did not have matching fixture data

I'm trying to test my controllers using xUnit but getting the following error during execution of Customer Controller: "The following constructor parameters did not have matching fixture data:...

Testcafe - How to run code after all the fixtures are run

I want to create a snapshot of the SQL server DB and then restore it after "all the fixtures" are run. I can do it after every fixture through .after hook in a fixture. However, that is causing...

How can I get Cypress to run a specific folder of tests by specifying it as a project?

I have the following directory structure for working with Cypress: cypress-automation cypress fixtures integration apps pulse smhw-prod ...

Why might Respawn be wiping my entire database?

I am setting up subcutaneous tests, following a similar paradigm as outlined here. Calling Respawn's Reset is wiping my entire database. I set a checkpoint and then reset it. I tried resetting...

TEST_P tests in library do not run when INSTANTIATE_TEST_CASE_P is called in a separate executable

I'm trying to follow the instructions for Creating Value-Parameterized Abstract Tests in the googletest README. I've created a project directory, in which I have CMakeLists.txt, fixture.hh,...

CLI arguments are not processed in conftest.py in my pytest

My project implementation is to capture details from CLI to determine the environment, to generate the token in that environment and to return the token and the application URL. Here is the code...

Jasmine Testing - How to test for a css class being applied?

I am currently creating my first JS project and am trying Jasmine unit testing for the first time. In my code, I want to test the function in one of my classes which applies a css class to a...

set pytest fixture's scope dynamically from args

A little background: In fixture, I am configuring a browser and closing it in teardown part. The scope of the fixture can be dynamic due to the integration with Saucelabs. The reason behind is...

Getting error to run test cases from bit-bucket pipeline( working on localhost direct test cases)

I am using lmc-eu/steward to write test cases with selenium server in php i am running this test cases direct command that is working fine but as i have added it in bitbucket pipeline then its...

Define the same setup and teardown for every test fixture

I have a project with several TestFixture and I want to define the same [SetUp] [TearDown] methods for every test. Considering I have many TestFixture I want to avoid editing all my files to add...

How do I use tmpdir with my pytest.fixture?

I have a unit tests class that is testing what is inside a txt file. I am using the tmpdir fixture with pytest. This is my current class: from objects.TicketCounter import TicketCounter from...

Can vscode run pytests at the folder level instead of just running all tests or only a single test?

My project structure looks something like this: ├── myproject ├── conftest.py ├── pytest.ini └── tests ├── fixtures ├── integration └──...

React + Redux + Storybook: How to use connected react router's useParams when writing storybook stories?

I have a react component that grabs an id from the route and uses that to load some data and populate the redux state. I am using useParams from 'react-router' to do this. import { useParams }...

Pytest BDD: "TypeError: 'NoneType' object is not callable" when trying to use scenarios decorator

I have a number of tests that have the same feature file format, but pass across different arguments and assert different json responses so I want to use the scenarios decorator over scenario. The...

Reading updated fixture file in Cypress

I am trying to run a test case in which a fixture file is updated. I am then using this file and uploading it somewhere. The problem is that during the test run, Cypress caches the fixture files...

How can I Unit Test GraphQL file Upload with API Platform?

In addition to my other tests against my GraphQL API Platform backend, I am attempting to test file uploads. I'm not quite sure whether the ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client...