Porting tests to Pytest

Utkarsh Bansal edited this page Feb 13, 2017 · 3 revisions

##Introduction Software testing is extremely important to the MDAnalysis project, so that users of the package can be confident in the results of their analysis. With the current test package nose, ceasing to be developed we have decided to move to using py.test.

Current state

There are a total of 4731 test cases(that nose executes). Running the testsuite, with pytest gives the following output: 1789 failed, 2630 passed, 52 skipped, 1610 pytest-warnings, 26 error


Existing Plugins and how to import them

Tests passing with pytests

Tests failing currently

  • Classes with __init__ methods are not collected for test cases.

Examples of failed tests

Where can we replace nose with pytest

Project Information

GNU GPL v2 code license
Labels: python, molecular dynamics, analysis, DCD, CHARMM, LAMMPS, NAMD, Gromacs, computer simulation, atoms, coordinates, trajectory, XTC, Library, object-oriented
Core Developers


Release Notes
Guide for Developers
Google Summer of Code

Code of Conduct


@mdanalysis on Twitter
Downloads (PyPi)
Mailing Lists:
User discussion group
Developer mailing list

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.