Category "testing"

Laravel + phpunit + github actions = Failed asserting that '1' is identical to 1

I'm trying to make CI pipeline and run phpunit tests via GitHub actions. First of all: tests work fine on my local machine (mac os). Then, when I do git push my

How do you run the main binary and then run tests based on it in Rust?

I have written a webserver which requires some complicated setup and teardown, and am trying to write unit tests. Axum does provide examples using the Tower One

Unexpected value 'DecoratorFactory' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation

This is my spec file: import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; im

How can I write test cases for instances in Haskell

I have an instance of Num for a type I created called Vec: instance Num Vec where (+) (Vec x) (Vec y) = Vec (zipWith (+) x y) And I am trying to write a test

Jmeter not executing script from command line (CLI mode) but works fine with GUI mode

I wrote a script in Jmeter that is fine being executed from GUI mode but will fail when being executed from CLI mode (non-GUI) This is the result from CLI mode:

How do I separate the execution of tests via cargo test?

I'm working on a Rust project that has many units test (almost 200). About 20 of those tests are really heavy and they create problems when executed with the ot

Gatling: Set the report directory name?

I'd like to customize the Gatling report directory created as a result of a test execution. By default, report directories are written (using gatling-maven-plu

How do I display number of selected items in checkbox?

How do I display the number of selected items? I've tried different ways to count the checkbox but it did not count the items when I click "select all". I want

What will be the output of this code by unit testing with mockito and Junit

public ResponseEntity<Object> getAirlines() { LOGGER.info("getAirlines: Getting all airlines."); return new ResponseEntity<>(this.airlineSer

Check TestCafe is running

I use TestCafe for testing a website. I use the testcafe inside my node module. Users can start the test out of the node presented website. I start it with:

Instrumented Test not running in Android Tests Passed 0 Passed

I have been trying to run a test case , present in androidTest Package. But as i execute the test, Emulator launches and I get tests passed : 0 Passed. and gett

Mock a Widget in Flutter tests

I am trying to create tests for my Flutter application. Simple example: class MyWidget extends StatelessWidget { @override build(BuildContext context) {

How to verify Image is visible/exists on front end using <img src> or <a href> tag

Does anyone know how I can verify if an image exists using its <a href> or <img src>? I can only verify by its class such as: it('Verifying vertical

Programmatically set an url parameter in gin context for testing purpose

I am writing some test suites for gin middlewares. I found a solution to test them without having to run a full router engine, by creating a gin context like th

How to slow down test execution in TestCafe?

I want to check UI test execution written by another developer. It is too fast for my eyes and brain to catch what is happening. How do I slow down the executio

Trying to upload image using Karate REST API tool

I m trying to upload two images in the post method, like this but it's returning this error, the api didn't receive the uploads images I want to know how is t

Unable to load a specific URL with Cypress

I’m unable to load the following URL with Cypress. Getting timeout error. I have set the page load time to 2 mins, still same issue. General URLs eg. (htt

What is the difference between 'toBe' and 'toEqual' in Jest?

Jest documentation reads: toBe just checks that a value is what you expect. It uses === to check strict equality. And for toEqual: Use .toEqual when

How to import JIRA Test Cases to AZDO test plans?

I have to migrate almost 150 Test Case (JIRA Tasks) to Azure Test Plans. Is there any way I can directly export JIRA TCs and Import them into the AZDO?

How to simulate android back button in react-native test

In componentDidMount I'm adding a listener to handle Android back navigation and would like to add tests around it's behaviour. How do I firstly test something