File tree 2 files changed +47
-0
lines changed 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,12 @@ is to read the documentation at `read the docs <https://pynmrstar.readthedocs.or
25
25
26
26
.. |Wheel | image :: https://img.shields.io/pypi/wheel/pynmrstar.svg
27
27
:target: https://pypi.org/project/PyNMRSTAR
28
+
29
+
30
+ Running the unit tests
31
+ ----------------------
32
+
33
+ .. role :: bash(code)
34
+ :language: bash
35
+
36
+ if you with to run the unit tests distributed with PyNMR-Star, please see the readme in :bash: `pynmrstar/unit_tests `
Original file line number Diff line number Diff line change
1
+
2
+ How to run the unit tests
3
+ =========================
4
+
5
+
6
+ Setup
7
+ -----
8
+
9
+ All the following commands should be made from a shell inside the
10
+ PyNMRStar distribution folder (PyNMRStar not PyNMRStar/pynmrstar).
11
+
12
+ Some parts of the unit test structure are in a sub-repo that needs to be
13
+ downloaded separately using git.
14
+
15
+ .. code :: bash
16
+
17
+ git submodule init
18
+ git submodule update
19
+
20
+ if you have downloaded PyNMR-Star as a git hub repo you may need
21
+
22
+ .. code :: shell
23
+
24
+ export PYTHONPATH=< full-path-to-PyNMRStar-folder>
25
+
26
+ Using unit test
27
+ ---------------
28
+
29
+ .. code :: bash
30
+
31
+ python3 pynmrstar/unit_tests/test_pynmrstar.py
32
+
33
+ Using pytest
34
+ ------------
35
+
36
+ .. code :: bash
37
+
38
+ pytest pynmrstar/unit_tests
You can’t perform that action at this time.
0 commit comments