Skip to main content

Questions tagged [testing]

Verifying the behavior of a software system against the expected behavior of that system.

6 votes
3 answers
338 views

How to test the parts of an application that cannot run in a test harness

I'm working on a program that runs as a sort of plugin to the Windows UAC prompt (and other similarly difficult environments). The testing situation is a bit abysmal. End-to-end tests are not possible,...
jetm's user avatar
  • 69
1 vote
2 answers
237 views

Testing GUI panel involving modal dialogs

Suppose you have a panel with a table, which I will call a pane. The table has a toolbar above it, including an edit button. Editing involves showing an editing dialog. It allows the user to edit the ...
Sergey Zolotarev's user avatar
-2 votes
4 answers
410 views

Terminology for a case where the same algorithm produces different results during tests?

I'm testing writing 10 MB of data to a server. The expected result echoed back is 10485760 bytes. 160 writes of 65336 bytes. Approximately 1 of 5 tests I get back 10420224 bytes in the test. 65536 ...
guest271314's user avatar
2 votes
2 answers
161 views

Test a script reading from external source

I regularly write scripts and small tools that read data from external servers. I am still not sure what is the most efficient and effective way to test them: Probably the most effective way would be ...
JF Meier's user avatar
  • 700
14 votes
10 answers
4k views

Is Dependency Injection useful when implementations are never expected to change?

Dependecy Injection makes mostly sense when using interfaces, since one of DI's strengths is to switch out implementations. It also decouples classes, since the consumer of the dependency does not ...
Hans's user avatar
  • 572
2 votes
3 answers
1k views

Scope of integration tests

I'm programming a .NET WebApi application from services. What is the scope of an integration test within the following schema? Order creation scenario: Order is created -> stored in db -&...
Petr Klekner's user avatar
4 votes
4 answers
846 views

Best practice when working with code that uses current date and time

All programming languages have some method of referencing the current date and time. Examples... now() sysdate DateTime.Now() current_timestamp Get-Date In a professional or semi-professional ...
ConanTheGerbil's user avatar
4 votes
1 answer
426 views

Best way to "verify" programs

As we know, determining the semantic properties of programs is an undecidable problem (e.g. Halting, commonly attributed to Turing). But tools such as static analysis (notably that of Clang/LLVM) are ...
DannyNiu's user avatar
  • 372
3 votes
3 answers
199 views

Automation of workflow for automated testing

What are your opinions on writing "production" code to facilitate testing? Specifically, the use case is this: we have a system with a multiple step workflow, where a few stages are done by ...
Kramer's user avatar
  • 147
1 vote
1 answer
181 views

Automatic regression tests with change detection in blue/green deployments

Our product is almost fully deployed in CI, however one remaining part that we have to wrap up is still the regression (update: characterization / golden master) testing: So considering we have a blue/...
glades's user avatar
  • 493
4 votes
3 answers
791 views

Clearing static state before testing each method

My SUT class depends on external static state (which generally should be avoided, I know). How do I make sure my tests do not depend on their order of execution? I mean other by introducing some reset(...
Sergey Zolotarev's user avatar
0 votes
2 answers
220 views

Is Spring Boot Unit Test Coverage with Integration tests only a bad practice?

I have recently come across a few codebases at work where the previous developers chose to reach the >80% coverage criteria by writing only integration tests with the @SpringBootTest annotation ...
Mary's user avatar
  • 3
3 votes
2 answers
230 views

Ensuring unit test data stays accurate

Say I have a method that expects data to be in some form to perform accurately. In the actual service/application flow, that data is formed upstream in other methods or services. How can I ensure the ...
Jason's user avatar
  • 33
2 votes
4 answers
887 views

Microservices shared end-to-end testing: Which version(s) of other microservices to use?

Introduction I am reading Building Microservices (second edition) by Sam Newman. In chapter 9 the author highlights 2 problems when desiging end-to-end testing for microservices: Which version of the ...
BARJ's user avatar
  • 131
1 vote
1 answer
170 views

NUnit testOf attribute usage

What are the use cases of TestOf? I'm new to NUnit testing and from what I have seen, most people don't use this attribute that much. From my experience, TestOf helped me to quickly identify what ...
LNTR's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
101