7,105 questions with no answers
0
votes
0
answers
21
views
How to test nested bloc event's
I'm writing unit test for my bloc event's. And some event's triggered other event's inside itself. I used expect to test state changes. But when nested event't triggered expect expects state change's ...
0
votes
0
answers
33
views
Inconsistent behavior between Flask real session storage and test_request_context during tests
I’m using Flask’s session storage to temporarily save a list of dataclass objects. Here’s an example of the Transaction class and my TransactionMemoryRepository:
@dataclass
class Transaction:
...
1
vote
0
answers
39
views
Spring load TestPropertySource OR PropertySource (but not both) based on condition
I have a TestBase class that is extended by all test classes. This class runs locally from IntelliJ if the @PropertySource("classpath:/test.properties") is used on it it runs properly in the ...
0
votes
0
answers
206
views
Verify an App Store receipt always staus code 21003
I'm trying to verify a receipt with the App Store server in the sandbox environment.
I've checked all values are correct but keep receiving:
{
"environment": "Sandbox",
&...
1
vote
0
answers
406
views
How to resolve the dependency issue in VectorCAST for Microchip source code
I need to do software testing and validation for the PIC16f15214 source code using VectorCAST.
But when I build the environment it shows the "compiler error" / "can't open the 'XYZ.h' ...
2
votes
0
answers
61
views
Testing @Scheduled annotation starts more than one thread
I have a Spring Boot application and I created a method with the @Scheduled annotation that takes a cron expression as parameter (let's say it needs to run every 5 seconds). The scheduled method is as ...
3
votes
0
answers
496
views
How to fulfill expectCount with confirmation() Swift Testing
I'm trying to use the expectedCount parameter in confirmation(_:expectedCount:fileID:filePath:line:column:_:) to check that a function completes, exactly, 25 times.
This is my test, is currently ...
0
votes
0
answers
52
views
Connection Time Out running tests on Selenium
I use Python 3.10, Pytest, Selenium, Geckodriver(Firefox) and X-dist for asynchronous tests. Not so long ago, I ran into a problem: when running tests, some of them pass and then the tests start ...
2
votes
0
answers
2k
views
How to test that a form was submited with react-hook-form and vitest
I have a very simple form in which i try to test that once the submit button is hit the mock function is called, but to no success, It works when i test that the input was changed, but clicking the ...
0
votes
0
answers
75
views
How can I make my Jest test recognize jsx/tsx syntax?
My test is refusing to recognize < angle brackets.
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard ...
0
votes
0
answers
136
views
Allure property allure.serve.host is not working
I have a java project for api and end-to-end ui testing and right now I am changing my reports from Serenity to Allure. I've setup the serve goal in my maven verify phase and it works fine, but Allure ...
0
votes
0
answers
172
views
Test containers with node js running in github actions
I have nest js project, which uses tests containers for tests, I mainly need PSQL so I only run a single container for postgresql, works locally not in the CI pipeline, here is the TS code for setting ...
0
votes
0
answers
26
views
Testing TypeScript code compiled with the module: none option
I have TypeScript code, being compiled with the "module": "none" option and single output JavaScript file. I need a JavaScript code that I can run directly in the browser console.
...
0
votes
0
answers
58
views
How to run pact cdc contract tests parallel?
I write cdc provider tests with pact provider.
@Provider("i-api")
@PactBroker(url = "https://pact.h.com")
@ExtendWith(PactVerificationInvocationContextProvider.class)
public class ...
0
votes
0
answers
52
views
Vitest snapshot: unsorted html attributes
I am running a vitest to test if a vue component match an snapshot.
The vue component use javascript flatpickr component to generate a datepicker.
The snapshot is generated with another environment ...
0
votes
0
answers
8k
views
Gauge java is getting Killing runner with PID:XXX forcefully
I am running tests using gauge on my jenkins node.
My shell script at some point runs :
/usr/local/bin/gauge run specs
I am reaching a point where the output is :
Successfully generated html-report ...
0
votes
0
answers
160
views
How to send Slack alert for a dbt 'warn' severity test using Airflow?
I have a dbt test setup for my dag which is modified to have a warn severity in its config like so:
{{ config(severity = 'warn') }}
Now the question is, once this test is ran during in airflow, how ...
1
vote
0
answers
457
views
Nest could not find ' ' element (this provider does not exist in the current context)
I have been getting issues with the injections of Nest.js when working with TestingModule. The app works fine when ran but not through the tests. The issue happens when trying to get any other ...
1
vote
0
answers
78
views
Call functions from Aptos Explorer | Aptos MOVE
I wrote some unit tests for my modules, which worked well. But I don't get why I can't call these functions on Aptos Explorer
The error is showed in the image is
Error: {"message":"...
1
vote
0
answers
27
views
How to run the http-pokeapi sample app from Keploy?
I was exploring the Keploy sample apps and couldn't find the documentation for the http-pokeapi sample app in the samples-go repository. I tried to explore a bit, but couldn't find proper solution.
...
1
vote
0
answers
104
views
NestJS e2e test returning 400 Bad Request, while Postman returns 201 Created for the same endpoint
I am writing an end-to-end test for a NestJS API endpoint that creates a table. The issue is that the test consistently returns a 400 Bad Request, while the same request in Postman works perfectly and ...
6
votes
0
answers
87
views
Validation of clobber constraints in inline assembly
I maintain C code that has inline assembly used by GCC, Clang and sufficiently compatible compilers¹. Inline assembly statements require constraints to tell the compiler what registers and memory are ...
0
votes
0
answers
80
views
Relation Does not Exist Error While Using Existing database with Rails new Project
I already done one project using Rails 6 version with PostgreSQL 9.6 version. And for learning TDD purpose, I created new project and tried to use my old project's database. And I have Categories and ...
0
votes
0
answers
170
views
Yandex Browser is not opening website for the first time
I am testing a website and there is an issue where I can't open that website in Yandex browser and Telegram in-app browser for the first time. IMO the issue is related to redirection.
When I enter ...
0
votes
0
answers
49
views
Jest Test in Next.js Fails with "ReferenceError: document is not defined"
I’m working on a Next.js app and trying to write a Jest test for a simple button component. However, when I run the test, I get this error:
ReferenceError: document is not defined
The error below may ...