← Back to team overview

dolfin team mailing list archive

Re: [HG] Group unit tests into test suites.

 



Garth N. Wells wrote:
Anders Logg wrote:
What is the advantage with creating test suites?

My understanding of Python is improved :)

It seems the new
setup is more complicated than the original setup and I don't see any
difference. Before, we just had

import unittest

from mesh.test import *
from la.test import *

unittest.main()

Is that not enough?

The real reason is so that tests can be run selectively. With how it was before, it wasn't possible to run all tests just in la or mesh since there was no

   unittest.main()

function in src/test/ls/test.py or src/test/mesh/test.py. If it's added, then running /src/test/test.py doesn't do anything. There could be a simpler solution.


Should be

if __name__ == '__main__':
    unittest.main()

Garth

Garth

/Anders


On Fri, Aug 11, 2006 at 05:56:24PM +0200, DOLFIN wrote:
One or more new changesets pushed to the primary DOLFIN repository.
A short summary of the last three changesets is included below.

changeset:   2110:9e3a57ba902fddf05a6e5bfcc84266f7e01a5313
tag:         tip
user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
date:        Fri Aug 11 17:55:38 2006 +0200
files:       src/test/la/algebraUBlas.py src/test/la/createUBlas.py src/test/la/solverUBlas.py src/test/la/test.py src/test/mesh/test.py src/test/mesh/unitMesh.py src/test/test.py
description:
Group unit tests into test suites.


changeset:   2109:3c8a068792cd2df65d3f7cd71db91c4c2405147a
user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
date:        Fri Aug 11 12:40:32 2006 +0200
files:       src/test/la/algebraUBlas.py src/test/la/createUBlas.py src/test/la/test.py
description:
Split la unit tests into separate files.


changeset:   2108:c63021b9fcbbecdd862c80422756d6f43ab3fb2d
user:        "Garth N. Wells <g.n.wells@xxxxxxxxxx>"
date:        Fri Aug 11 12:14:33 2006 +0200
files:       src/test/la/test.py
description:
Add more unit tests for linear algerbra.


-------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




References