7,106 questions with no answers
Best practices
2
votes
0
replies
25
views
Testing with corroutines
Let's say I have Worker class and I want to do long running tasks in the background until user stops it or it is cancelled. It changes state of the class while doing the work and I want to write tests ...
0
votes
0
answers
21
views
Why is <c:if test="#{MyBean.myFunction()}"> rendering multiple times in my xhtml file?
I have a large xhtml file, below the imports there is a component that should only render when a test from a Bean returns true.
<c:if test="#{MyBean.myFunction()}">
<div id=&...
Advice
0
votes
0
replies
34
views
Make Bazel use either RUNFILES_DIR or RUNFILES_MANIFEST_FILE?
Bazel on Linux usually sets the RUNFILES_DIR environment variable but it may alternatively set RUNFILES_MANIFEST_FILE. General advice for scripts is to make your scripts capable of working with both. ...
Advice
0
votes
0
replies
25
views
Designing a props-driven test framework for data quality validation - best patterns?
Question: I'm building a testing system for a data quality SaaS app where tests are entirely props-driven (similar to React component testing philosophy).
Goal: Create reusable, composable test ...
1
vote
0
answers
38
views
Locust POST Request with .xlsx File to Flask Endpoint Returns a 503 Error
I am testing my Python Flask app using Locust to load-test a POST request with an .xlsx file attachment. However, I consistently encounter a 503 Service Unavailable error.
This issue ONLY occurs when ...
Best practices
0
votes
0
replies
16
views
Is there a way to reference contracts deployed on anvil in a typescript test?
Right now, I am deployed contracts on anvil with a script, logging the addresses, and hardcoding it into my viem typescript test. Is there a more seamless way to do ts tests in conjunction with smart ...
0
votes
0
answers
50
views
Nuxeo: can I use local contribution to define directories when testing?
I need to test operations and listeners using vocabularies, they are present in my studio package but, from what I understand are not included when the package is deployed locally upon testing.
What ...
-2
votes
0
answers
50
views
SCIP make test do not give me .err file
I am trying to compare two algorithms in SCIP. To do this, I am following the steps in https://www.scipopt.org/scip/doc/html/TEST.php, but it says that SCIP automatically creates the scip/check/...
0
votes
0
answers
121
views
Laravel PHPUnit test: Multiple databases issue
In my Laravel application, I have set up two databases in a single server. All specific migrations and model classes have $connection property set up to use blog instance. The app works fine, no ...
0
votes
0
answers
31
views
Cypress test hover
I read that :hover is not supported for various reasons ( reference )
So what is the approach to test if hover on an item actually works ?
I tried to trigger mouseenter, mousemove to position, but it ...
0
votes
0
answers
58
views
Django Testing in microservices with more than 1 db running
I would like to ask about a certain topic that is tough one. Im working in a project that has microservices architecture with more than 1 databases running every time. in django, how can I perform ...
0
votes
0
answers
67
views
RobolectricTestRunner and suspend functions. Test function not found
@RunWith(RobolectricTestRunner::class)
class ServerUnitTest {
@Test
fun localAccessTest() {
runTest {
val res = LocalAccess.pingServer()
assertEquals(res, 0)
...
0
votes
0
answers
71
views
Weird Results in Robot Pathfinding Algorithm Testing Using MATLAB
Recently, I developed a MATLAB-based simulation to evaluate my robot pathfinding algorithm. The robots operate on a network of unidirectional tracks, where each robot computes a single path from its ...
1
vote
0
answers
86
views
Subscription Unavailable in sandbox environment configuration
I'm trying to run app from Xcode on real device with sandbox mode. What I've tried so far:
Locally:
iPhone reset using: Reset All Settings
Developer mode on device is Enabled
Settings > My Name &...
0
votes
0
answers
37
views
How to test aync Spring WebClient with WireMock?
Whenever I have a client in my Spring Boot application I use WireMock for integration testing. Works very well.
I now have to implement an async client for which I am using WebClient, but my typical ...
0
votes
0
answers
187
views
Is it possible to test concurrent HTTP calls and Firestore side effects in Firebase Cloud Functions (Python, Gen 2)?
My goal is to write tests that:
Simulate multiple concurrent HTTP POST requests to a cloud function endpoint (e.g., 2-3 identical webhooks arriving almost simultaneously).
Verify database side ...
1
vote
0
answers
77
views
How to ensure the UI changes during widget testing?
I'm trying to ensure a particular Text Widget in my application styles its text differently when the state changes. If the text itself changed, I could just compare the text before and after. But this ...
1
vote
0
answers
91
views
How to check order of enum with fields?
Let's say there is an enum with fields with a specific order. e.g.,
pub enum MyValues {
U8(u8),
U64(u64),
U128(u128),
Str(Vec<U8>),
U16(u16),
}
How to add a test to make ...
1
vote
0
answers
139
views
How to disable specific Spring components only during Maven test runs without using @ActiveProfiles in every test?
I am working on a Spring Boot (3.5.3) application with Maven (3.9.10) where I have some components (e.g. initializers) that break certain tests. I want to disable these components only when running ...
1
vote
0
answers
60
views
Python: Running tests with all combinations of feature flags
We have several modules that require mandatory feature / backout flags. These flags are defined at module level.
module.py:
from enabled import is_enabled
FLAGS = {flag : is_enabled(flag) for flag in ...
1
vote
0
answers
75
views
In playwright, why does performance.getEntriesByName yield no result if clock is installed?
I'm testing the following scenario with Playwright:
await page.goto("my/url");
await page.clock.install();
const entryPromise = page.evaluate(async () => {
...
0
votes
0
answers
32
views
junit-standalone-console-platform problem with application.properties
I have a problem with reading application.properties by @SpringBootTest when I start it with a command:
java "-Dfile.encoding=UTF-8" "-Dallure.results.directory=config/reports/allure&...
0
votes
0
answers
45
views
Insomnia: [oauth2] Failed to get token ReferenceError: window is not defined
I am trying to integrate Insomnia Collection in CI. I have the tests written on Insomnia as a collection which runs absolutely fine via the GUI, also giving the test results defined in post-request ...
0
votes
0
answers
17
views
Testerum: How to enter a date in a date text field which is JS controlled
I am using Testerum for website testing. I need to fill in a specific date in a date field. The date field is a normal text field with a datepicker from gijgo.com.
When sending 21.01.2004, nothing ...
1
vote
0
answers
133
views
Angular Test Cases Jasmine
I am trying to write test cases for this Super Report Component where I provided all the required services and routers, and when I execute my test cases, I will not get any results: no success or ...