File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -70,3 +70,44 @@ docker compose up generate
7070` ` `
7171
7272This will create new folders for the new version you just added.
73+
74+ # # Running tests locally
75+
76+ To run the python tests you need to install requirements
77+
78+ ` ` ` bash
79+ $ pip install -r requirements.txt
80+ ` ` `
81+
82+ Then you can run the tests:
83+
84+ ` ` ` bash
85+ $ nosetests
86+ ` ` `
87+
88+ Locally you may have an error like ` ` , running these commands may help running tests locally:
89+
90+ ` ` ` bash
91+ $ pip uninstall -y nose
92+ $ pip install -U nose --no-binary :all:
93+ ` ` `
94+
95+ or alternatively:
96+
97+ ` ` ` bash
98+ $ pip install nose-py3
99+ ` ` `
100+
101+ If you need to debug one specific test you first need to run
102+
103+ ` ` `
104+ $ nosetests --with-id
105+ ` ` `
106+
107+ This will execute tests and each test method will be assigned an ID that you can then use to filter it specifically:
108+
109+ ` ` `
110+ $ nosetests --with-id 7
111+ ` ` `
112+
113+ This will also generate a ` .nodeids` binary file, when you add new test methods you need to remove this file to re-generate the list of IDs.
You can’t perform that action at this time.
0 commit comments