mikaem / fenicstools

55 stars 36 forks source link

Aslakbergersen/topic pytest #8

Closed aslakbergersen closed 9 years ago

aslakbergersen commented 9 years ago

Update test framework to pytest. The new tests have not been tested on performance, but is assumed to be faster. The original tests where not constructed for pytest and one should in the future try to benefit from all the possibilities with fixtures and so on. To run all tests

py.test

in the same folder or any level above. To the tests in one file you have two options

py.test [filename]
./[filename]

Further on pytest have the possibility to distribute the tests o multiple CPUs with the flag -n [N], where N is the number of nodes.

mikaem commented 9 years ago

All tests pass nicely!