Category "testing"

How to execute scala tests programmatically

I'm looking for a way to execute scala tests (implemented in munit, but it could be also ScalaTest) programmatically. I want to perform more or less what sbt te

maven jacoco plugin reports always show 0% of coverage

JaCoCo reports always shows 0% of coverage but Intellij integrated report is ok. I already see others StackOverflow questions but none helped. Below is my jacoc

How to test stenciljs nested components

I have a stenciljs component embedded inside another stenciljs component <parent-component> <child-component attrz="x"> </child-component>

Mocking internal function call in Kotlin

I am a complete beginner in terms of Kotlin and I am finding some issues while trying to test out a Ktor based application. I have a file in my endpoints packag

Why are tests failing in Ruby on Rails?

I am studying the book "Agile Web Development with Rails 4". In it, at one moment associated with testing, it gives two errors Error: ProductsControllerTest#tes

Sending messages to durable queue using Rabbit perf test tool

How can I send messages to a durable queue using the Rabbit Perf Test tool? I am getting this following error: Caused by: com.rabbitmq.client.ShutdownSignalExc

How to test CSS properties defined inside a class with react testing library

I am trying to test CSS properties that i have defined inside a class in css, wing the react testing library. However I am unable to do so. Adding the simplifie

Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverter

exeute xcrun xccov view --archive --file #{file_path} #{xcresult_path} > result.txt console log: 2020-09-17 15:33:01.346 xccov[80302:9272810] Requested but

getting error as TypeError: __init__() got an unexpected keyword argument 'cache_valid_range' . It is not present in ChromeDriverManager Python

I am trying cache_valid_range for my ChromeDriverManager constructor, below is a code snippet enter image description here But I have checked the latest ChromeD

How to mock VueAxios in jest

I want to test my Api functions which are on separate file outside vue component. Inside this methods i call api by Vue.axios, and i can't find the way to mock

Pytest: How to know which fixture is used in a test

Maybe I'm not "getting" the philosophy of py.test... I'm trying to re-write a bunch of tests for aws lambda code that receives events (webhooks with json payloa

How to see stacktrace / cause of an error in Jest?

I'm trying to debug a nodeJS app. I have some code which causes an error, a variable is undefined. When I run the code normally, the error is very clear and eas

Why is my Java function in my Karate feature returning a String instead of an array?

I am new to software testing and working in a Karate environment. Currently I am working on a story where I have to test that the maximum number of database ent

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/