New answers tagged testing
-1
votes
Testing for non-existence of a method in API
The correct way to test for this is to achieve 100% code and branch coverage with your functional tests.
Then you know there is no extra hidden untested method that shouldn't exist
7
votes
Testing for non-existence of a method in API
how do I test that Bar() indeed does not exist among the callable API after Baz() has been called?
With the type system. In a statically typed language you get this test for free.
Fluent builders, at ...
0
votes
Does software which implement scientific models require unit tests?
It depends what you use unit tests for. Your software can be in a state where you say “if any if the unit tests failed, the software just couldn’t work.
In this case unit tests help you just during ...
12
votes
Accepted
Testing for non-existence of a method in API
Reflection is the obvious way to do this - have a look at the type of object returned by Build().Baz() and examine what methods are available on it.
I would however question if this is a worthwhile ...
4
votes
Quality Assurance for Large SQL Script Releases
Ensuring the test environment aligns closely with production is critical for reliable SQL script releases, as mentioned by @Christophe. This includes using anonymised or synthetic datasets that mirror ...
8
votes
Accepted
Quality Assurance for Large SQL Script Releases
The key of the problem is here:
Eyeballing the database afterwards helps but, it introduces a lot of human error.
Making this eyeballing more automated and systematic requires a good specification ...
5
votes
Quality Assurance for Large SQL Script Releases
You can write small tests in sql at the end of the script and roll back if they fail.
You can test migration scripts by comparing the database schema against a known good state (your already migrated ...
0
votes
Does software which implement scientific models require unit tests?
I worked not in the hard sciences, but in the business department, and there are a lot of people using simulation research (simulated economic decision-making, etc). I myself published some ...
0
votes
Would a middle ground between unit and integration tests be optimal
Are you familiar with the test pyramid?
When building production software, it's important to consider the pro's and con's of each potential design. There will only be one implementation of the ...
Top 50 recent answers are included
Related Tags
testing × 1491unit-testing × 476
tdd × 173
integration-tests × 136
java × 80
qa × 66
design × 61
continuous-integration × 52
mocking × 50
acceptance-testing × 49
c# × 46
programming-practices × 44
development-process × 44
python × 41
quality × 39
test-coverage × 37
functional-testing × 35
test-automation × 33
agile × 31
bdd × 31
code-quality × 29
php × 28
design-patterns × 26
theory × 26
architecture × 24