File: index.rst

package info (click to toggle)
pynwb 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,312 kB
  • sloc: python: 17,501; makefile: 597; sh: 11
file content (20 lines) | stat: -rw-r--r-- 1,201 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Testing
-------

PyNWB has a goal of 100% test coverage, so it is important that any changes to the code base be covered by tests. Our
tests are split into four main categories, all of which are in the ``tests/`` folder:

* ``tests/back_compat`` tests to check compatibility of the API with older version of NWB. This is a collection of small NWB files with many different versions and a small testing script that ensures we can still read them.
* ``tests/unit``: tests that cover each use-case of each method or function
* ``tests/integration``: tests that neurodata types and NWB file can be written and read in various modes and
  backends including HDF5 and using the ros3 driver.
* ``tests/validation``: tests command line usage of the ``pynwb.validate`` NWB validator.

In addition to the ``tests/`` folder, there is also a :py:mod:`pynwb.testing` package. This module does not
contain any tests but instead contains classes and/or functions that help with the implementation of tests for PyNWB and are used in the testing suite and also be imported
and used by downstream libraries, e.g., to implement test suites for extensions to the NWB (NDX).

.. toctree::

    mock
    make_roundtrip_test