Category "testing"

How to unit test typeorm getRepository with Jest?

I am using typescript with typeorm and i have an repository like this: import { EntityRepository, getRepository, createQueryBuilder } from 'typeorm'; @EntityR

import the current package export by the package.json name

I'm interested to know if there's a convention that allows a person to test the expected usage of a package from within the package. Consider the following pack

Why is caplog.text empty, even though the function I'm testing is logging?

I'm trying to use pytest to test if my function is logging the expected text, such as addressed this question (the pyunit equivalent would be assertLogs). Foll

How should I do QA automation for the demo application on the Samsung Tizen Smart TV using Appium?

I have a Samsung T4 Tizen Series real smart device. I want to write a sample application for automation testing on it, so how to do that using Appium or any sim

Behavior-Driven Development(BDD) Testing with Fast API python web framework

I want to write BDD test cases for the Fast API framework where I have written some REST API. Though for normal test cases Fast API mentioned pytest package. Ba

Application controls are getting identified differently by CodedUi Test Builder

I am not able to Identify correct control of an application by Coded Ui Test Builder Seee this Image

What's the best way to test props you pass to child components?

I'm testing a component using Vue test utils and Jest and I'm wondering what's the best way to test you are passing the correct values to a child components in

IndexError: invalid index to scalar variable while testing

This is the code used in testing. I have been getting the error shown bellow. Can someone please tell me how to solve it? This is a custom trained model. I have

Failed to load module 'project name'

I added unit test target to my existing project, but while @testable import Product_Module_Name getting error "Failed to load module 'Product_Module_Name'". I

How can I test google.maps.Geocoder?

Hi! I'm attempting to write a "simple" test to check for a react class component state change. Specifically, I'm testing if the lat(latitude) and lng(longitu

How to deal with abstract Given steps in BDD?

At the base of our application is a big configuration set, which defines abstract groups of devices and they are omnipresent as part of the Gherkin scenarios. N

how to test button that call submit form using jest and react testing library

so I am trying to test that the onSubmit function is getting triggered if the button is clicked - the way im doing this is through testing the internals of the

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