Questions tagged [testing]
Software testing is any activity aimed at evaluating an attribute or capability of a program or system and determining that it meets its required results.
testing
50,560
questions
-2
votes
0
answers
46
views
How to test a server action function?
I have a nextjs server action that uses mssql for node to connect with the database.
The following is pizza.actions.ts:
export async function get_pizza_id(pizza_name: string) {
try {
if(!...
0
votes
0
answers
6
views
CDash vs ReportPortal.io [closed]
I am considering self-hosting a platform to report testing data and am trying to decide between CDash and ReportPortal.io. From my research, CDash seems to have outdated documentation, which is a ...
0
votes
0
answers
14
views
(Jest/ ts-jest) Mocking exported function is not working
I'm trying to mock a simple exported function in a test with Jest.
The problem is that the mocked function is not being called.
example.ts
export const exampleFn = () => {
return 'example'
}
...
0
votes
1
answer
31
views
Coloured output from native Django test runner
I'm trying to get a colored output (red or green) when running my Django tests with the native Django test runner.
I'm running a poetry virtualenv (python 3.11.6) with Django (5.0.3) and colorama (0.4....
1
vote
2
answers
42
views
Is it advisable to repeat an integration test that is used in more than one method?
I'm developing a project. This project has a repository (UserRepository) which is referenced by other parts of the project, I want to know if I have to test the repository method each time it is ...
0
votes
0
answers
14
views
Pitest Android: tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite
I'm having a lot of issues trying to make Pitest run against my Android project. I've solved a lot of problems related with Java/Gradle/Kotlin versions but now I'm stuck in a custom Pitest error:
...
-3
votes
0
answers
18
views
How to Balance Documentation and Testing in a Startup Environment? [closed]
I am working as a software quality analyst in a startup, responsible for manual testing on multiple websites simultaneously. My manager doesn't require detailed documentation like test cases or test ...
1
vote
1
answer
30
views
Cypress - How to iterate through the values of an environment variable and verify each item from the carousel list
I want to test whether the carousel on my website contains the correct items that are represented as company logos. Each carousel item has an <img> element with the 'alt' attribute which is ...
1
vote
0
answers
51
views
How to slowMo a single test
I would like to slow down the test execution of test step. I´m testing a container which has two tabs and each tab has different table with data. When I click on a tab, it takes time until data is ...
0
votes
0
answers
21
views
Android Compose Screenshot testing failing on pipeline with no visible differences
I'm trying out the new Compose Screenshot Testing https://developer.android.com/studio/preview/compose-screenshot-testing.
When I create reference images locally, then run the tests to validate the UI ...
1
vote
0
answers
11
views
How to add mocked S3Client to spring context on integration tests
So basically I have a S3StorageService class that needs a S3Client:
@RequiredArgsConstructor
@Service
public class S3StorageService implements StorageService<S3FileUploadResult> {
private ...
2
votes
2
answers
38
views
Adding Data to a testcontainer using a function from a repository
I've set up a testcontainer for use during integration testing. Whilst it works and the test data is upserted to the test container, I cannot accurately check that my repository function, using JOOq, ...
0
votes
1
answer
35
views
Testing Multiple Classes with Dependecies with Reflections
we're recently building a java-compiler for college and need to test our compiled files with java reflections. I've had no problem with this tool until now. We need to test if multiple files with ...
-2
votes
0
answers
37
views
Is it possible to have 100% statement coverage but less than 100% branch coverage?
I think it's impossible, because you would need to follow every branch to cover every statement, but I'm entirely not certain..
0
votes
0
answers
14
views
For each selenium request Google Chrome Browser generates 4 MB Browser Metrics file
I am using "Chrome for Testing" browser to execute my Jasmine / Selenium Test cases.
While executing the test case, when browser start creating BrowserMetrics-XXXXXXXX-XXXX.pma
files. Due to ...