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
Below is a note to myself primarily, need docs on how to debug / compare things with doxygen for others. If a user wants to compare the sphinx vs doxygen output, the need to
Make sure to set GENERATE_HTML = YES in their doxygen configurations.
If examining a test case,
from testing.decorators import no_cleanup and decorate a given test function with @no_cleanup. Then
In the test body self.app.build() (to actually get sphinx to generate html).
Then testing/projects/{TestCase.test_project} folder will have a docs_TestClass_test_method_name/ folder inside of it, the doxygen html appears in _doxygen/html and the sphinx html in _build/html.
diff --git a/testing/tests/cpp_nesting.py b/testing/tests/cpp_nesting.py
index f59627c..5b26d30 100644
--- a/testing/tests/cpp_nesting.py+++ b/testing/tests/cpp_nesting.py@@ -17,7 +17,7 @@ from textwrap import dedent
from exhale.utils import heading_mark
from testing.base import ExhaleTestCase
-from testing.decorators import confoverrides+from testing.decorators import confoverrides, no_cleanup
from testing.hierarchies import \
class_hierarchy, compare_class_hierarchy, compare_file_hierarchy, file, \
file_hierarchy
@@ -186,9 +186,12 @@ class CPPNestingPages(ExhaleTestCase):
"exhaleDoxygenStdin": dedent("""\
INPUT = ../include
EXCLUDE_PATTERNS = */page_town_rock_alt.hpp
+ GENERATE_HTML = YES
""")})
+ @no_cleanup
def test_hierarchies_primary_mainpage(self):
"""Verify the class, file, and page hierarchies."""
+ self.app.build()
self.check_most_pages(uses_mainpage=True)
# Last but not least, we expect the hierarchy to *not* have indexpage.
expected_page_hierarchy = dedent(r"""
@@ -209,9 +212,12 @@ class CPPNestingPages(ExhaleTestCase):
"exhaleDoxygenStdin": dedent("""\
INPUT = ../include
EXCLUDE_PATTERNS = */page_town_rock.hpp
+ GENERATE_HTML = YES
""")})
+ @no_cleanup
def test_hierarchies_primary_no_mainpage(self):
"""Verify the class, file, and page hierarchies."""
+ self.app.build()
self.check_most_pages(uses_mainpage=False, main_refid="overview")
# Last but not least, we expect the hierarchy to *not* have indexpage.
The text was updated successfully, but these errors were encountered:
Below is a note to myself primarily, need docs on how to debug / compare things with doxygen for others. If a user wants to compare the sphinx vs doxygen output, the need to
Make sure to set
GENERATE_HTML = YES
in their doxygen configurations.If examining a test case,
from testing.decorators import no_cleanup
and decorate a given test function with@no_cleanup
. Thenself.app.build()
(to actually get sphinx to generate html).Then
testing/projects/{TestCase.test_project}
folder will have adocs_TestClass_test_method_name/
folder inside of it, the doxygen html appears in_doxygen/html
and the sphinx html in_build/html
.The text was updated successfully, but these errors were encountered: