Skip to content

Commit 1f9f133

Browse files
sbrunnerm-kuhn
authored andcommittedMar 22, 2016
Add way to regenerate the list
1 parent 3b4a250 commit 1f9f133

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎tests/src/python/test_qgsdoccoverage.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
from utilities import printImportant, DoxygenParser
1919
from acceptable_missing_doc import ACCEPTABLE_MISSING_DOCS
2020

21+
# TO regenerate the list:
22+
# uncomment the lines under the `# GEN LIST`
23+
# $ export PYTHONPATH=build/output/python
24+
# $ export QGIS_PREFIX_PATH=build/output
25+
# $ python tests/src/python/test_qgsdoccoverage.py
26+
# copy the output to the file:
27+
# tests/src/python/acceptable_missing_doc.py
28+
# in `ACCEPTABLE_MISSING_DOCS = { <past> }`.
29+
2130

2231
class TestQgsDocCoverage(unittest.TestCase):
2332

‎tests/src/python/utilities.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ def parseFile(self, f):
386386
documented_members += documented
387387
class_name = elem.find('compoundname').text
388388
acceptable_missing = self.acceptable_missing.get(class_name, [])
389+
390+
# GEN LIST
391+
# if len(undocumented) > 0:
392+
# print('"%s": [%s],' % (class_name, ", ".join(['"%s"' % e.replace('"', '\\"') for e in undocumented])))
393+
389394
unacceptable_undocumented = undocumented - set(acceptable_missing)
390395

391396
if len(unacceptable_undocumented) > 0:

0 commit comments

Comments
 (0)
Please sign in to comment.