Skip to content

Commit

Permalink
Add in some debug statements.
Browse files Browse the repository at this point in the history
Refs #9874
  • Loading branch information
martyngigg committed Aug 3, 2014
1 parent 16a3c0f commit 858c775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/docs/sphinxext/mantiddoc/doctest.py
Expand Up @@ -447,12 +447,16 @@ def doctest_to_xunit(app, exception):
exception: (Exception): If an exception was raised then it is given here
"""
if app.builder.name != "doctest":
app.debug("Skipping xunit parsing for builder '%s'" % app.builder.name)
return
import os

doctest_file = os.path.join(app.builder.outdir, DOCTEST_OUTPUT)
app.debug("Parsing doctest output file '%s'" % doctest_file)
doctests = DocTestOutputParser(doctest_file)
app.debug("Saving doctest as xunit to file '%s'" % doctest_file)
xunit_file = os.path.join(app.builder.outdir, XUNIT_OUTPUT)

doctests.as_xunit(xunit_file)

#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 858c775

Please sign in to comment.