Skip to main content

New answers tagged

-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
Ewan's user avatar
  • 79.8k
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 ...
candied_orange's user avatar
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 ...
gnasher729's user avatar
  • 47.5k
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 ...
Philip Kendall's user avatar
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 ...
Robert Long's user avatar
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 ...
Christophe's user avatar
  • 80.6k
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 ...
Ewan's user avatar
  • 79.8k
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 ...
workerjoe's user avatar
  • 261
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 ...
Ohndei's user avatar
  • 121

Top 50 recent answers are included