Category "testing"

Is there a way to test a fully-managed Cloud Run revision before sending traffic to it?

I use Google's Cloud Run (fully managed) to run an app that I'm building. When I deploy a new revision, I'd like to be able to verify that various health check

How to test laravel controller method?

My controller looks like this: public function store(Request $request) { $validateData = $request->validate([ 'name' => 'required|u

Invalid character in header content ["Host"] Postman

When i try to test api with localhost:[port] it gives the invalid character in header ["Host"] console error. I am using dotnet core webApi. I cross checked the

Is there a way to test markers on MapView using DETOX in a react-native app?

I have a react native app that includes MapView component where we are rendering the markers. Using detox, I want to test the visibility of those markers and al

Use a MagicMock as its own return value?

Normally, a MagicMock returns new MagicMocks for any attribute or method called on it: >>> mm = MagicMock() >>> mm <MagicMock id='14009455

Use a MagicMock as its own return value?

Normally, a MagicMock returns new MagicMocks for any attribute or method called on it: >>> mm = MagicMock() >>> mm <MagicMock id='14009455

What are the advantages of API contracts being consumer driven vs provider driven?

I often read about establishing API contracts, but I'm not sure why it's usually recommended to be consumer driven? Can someone explain what are the advantages/

Pabot: How to use different dataset for each thread

I'm trying to Use Pabot to parallelize Robot Tests. Let me explain the issue. Assume I have TestA and TestB tests. And DataA , DataB dataset. There is 2 way/ go

Mock Retrofit error okhttp3.ResponseBody$1 cannot be cast

I'm trying to test a snippet of my code that uses retrofit, so I've created an interface to "mock" the return, it works in parts, it can invoke the onresponse o

Python: How to use mock or patch to check that a method inside another method has run?

I've read through a whole bunch of answers, but still don't understand where I need to mock and/or which class/module to patch and keep getting module does not

Nifi testing : Input Port and Output Port

I have a flow with one input and 2 output flows (happy path and failure path). I would like to test the flow, thinking to put message directly to the input flow

Can you pass the ISTQB Exam with just reading the syllabus?

I am in the process of revising for the ISTQB Foundation exam and was wondering if you can pass the exam just by reading the syllabus available on the ISTQB web

Unable to create an emulator using android studio

I installed android studio on MacBook Pro but when I try to create a virtual device it shows me an error saying that cpu does not support vt-x.

How can I avoid "No test specified" errors in npm?

I'm using [email protected] on Mac High Sierra. I want to run tests that were setup in this Stratum client project. I have run npm install successfully. But when I try

How to run multiple tests under same fixture with same browser session

I am trying to test multiple features in one test.js file with each feature implemented as a test. All these tests can be run only after login to the portal. Te

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: