Questions on the testing and verification of computational methods.
Questions tagged [testing]
42 questions
20
votes
3 answers
Strategies for unit testing and test-driven development
I'm a huge advocate of test-driven development in scientific computing. It's utility in practice is just staggering, and really alleviates the classic troubles that code developers know. However, there are inherent difficulties in testing scientific…
Aurelius
- 2,365
- 1
- 15
- 19
13
votes
4 answers
Testing suites for numerical applications in C++?
Recently, I've been pushing my group to include more testing when writing their code. There were several major bugs that took a lot longer to catch than probably speaking was necessary, because we didn't have a good testing regime in place.
However,…
aeismail
- 3,523
- 1
- 18
- 31
10
votes
1 answer
Are there testing frameworks for numerical software development
I found that a lot of my computational science programming has testing requirements that are not covered by standard test frameworks:
Computation time testing
To make sure that algorithms don't get slower. I could do something…
Bananach
- 799
- 3
- 13
7
votes
1 answer
testing derivative approximations
I'm writing a library that involves some approximations of variational calculus problems. Whenever I implement routines to evaluate the derivative or Hessian of an action functional $A$, I write a test to check that these are working correctly. To…
Daniel Shapero
- 10,263
- 1
- 28
- 59
3
votes
1 answer
How close observed order of accuracy should be to theoretical order of accuracy?
I try to write tests to the implementations of numerical methods.
The best way to do this is to study the observed order of accuracy and check that it matches with the theoretical order of accuracy.
However, I noticed that the observed order of…
Dmitry Kabanov
- 508
- 3
- 11