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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,30 +175,30 @@ You can inspect the version of openwisp-monitoring currently installed with::
175
175
Quality Assurance Checks
176
176
------------------------
177
177
178
-
We use `LuaFormatter <https://luarocks.org/modules/tammela/luaformatter>`_ to format lua files.
179
-
Once it is installed, you can format all files by::
178
+
We use `LuaFormatter <https://luarocks.org/modules/tammela/luaformatter>`_ and `shfmt <https://github.com/mvdan/sh#shfmt>`_ to format lua files and shell scripts respectively.
179
+
180
+
Once they are installed, you can format all files by::
180
181
181
182
./qa-format
182
183
184
+
Run quality assurance tests with::
185
+
186
+
#install openwisp-utils QA tools first
187
+
pip install openwisp-utils[qa]
188
+
189
+
#run QA checks before committing code
190
+
./run-qa-checks
191
+
183
192
Run tests
184
193
---------
185
194
186
195
To run the unit tests, you must install the required dependencies first; to do this, you can take
187
196
a look at the `install-dev.sh <https://github.com/openwisp/openwisp-config/blob/master/install-dev.sh>`_ script.
188
197
189
-
190
198
Install test requirements::
191
199
192
200
sudo ./install-dev.sh
193
201
194
-
Run quality assurance tests with::
195
-
196
-
#install openwisp-utils QA tools first
197
-
pip install openwisp-utils[qa]
198
-
199
-
#run QA checks before committing code
200
-
./run-qa-checks
201
-
202
202
You can run all unit tests by launching the dedicated script::
0 commit comments