← Back to team overview

dolfin team mailing list archive

Re: Adding tests

 

On Tue, Oct 09, 2012 at 01:28:05PM -0500, Andy Ray Terrel wrote:

> > Yes, running the script works.  I should have read it more carefully.
> > I had just put all my quad tests into the Mesh test.  Is that
> > preferred over splitting out tests?  To be honest, a stricter person
> > would require tests on each class but that becomes cumbersome in such
> > a large project.

Yes, we should have tests for each class. It's just laziness (or
rather lack of time). We started out with just one test.py for each
module and have since started to create one for each class (see
directory test/unit/mesh/python/).

> Another question, when a cpp test is changed, the build command
> doesn't copy it over to the build directory (like it does for the
> source files).  The tests seem only to be copied when the configure is
> run.  Is this normal or am I doing something wrong?

It should copy it over. Johannes?

--
Anders


Follow ups

References