datakurre / sphinxcontrib-robotdoc

Embed Robot Framework test suites and keyword libraries into your Sphinx documentation
6 stars 4 forks source link

Test steps missing in LaTeX and PDF output #4

Closed timhourigan closed 11 years ago

timhourigan commented 11 years ago

With 0.4.0 the test steps are missing from the PDF (and LaTeX) output.

Example:

* Test Cases * Test Example 1 [Documentation] This is test example 1 Log Hello World 1

Test Example 2 [Documentation] This is test example 2 Log Hello World 2

Will come out as the following in PDF

  1. Test Example 1 This is test example 1
  2. Test Example 2 This is test example 2

HTML output is fine.

I've stripped back my conf.py to see if some customisation was causing an issue, but that doesn't appear to be the case.

datakurre commented 11 years ago

Hi, I LaTeX output was empty, because with for Pygments-highlighting I started to use Docutils raw-nodes and implemented those only for HTML. spinxcontrib-robotdoc=0.4.1 should now generate those nodes also for LaTeX output.

timhourigan commented 11 years ago

Still not working from me I'm afraid. I don't see any test steps in the .tex file.

Example: test.rst

Testing
=======
A test example.

Test Cases
----------
.. robot_tests::
   :source: test.txt

Example test.txt

*** Test Cases ***
Test Example 1
  [Documentation]  This is test example 1
  Test Step Start
  Log Hello World 1
  Test Step End

Test Example 2
  [Documentation]  This is test example 2
  Test Step Start
  Log Hello World 2
  Test Step End

LaTeX output using newly generated config files with sphinx-quickstart and "make latexpdf"

<snipped>

A test example.

\chapter{Test Cases}
\label{test:testing}\label{test:test-cases}

\section{Test Example 1}
\label{test:test-example-1}
This is test example 1

\section{Test Example 2}
\label{test:test-example-2}
This is test example 2

<snipped>

As you can see, there are no test steps in in the LaTeX output.

timhourigan commented 11 years ago

Ok, hold off on my previous comment. pip-python didn't upgrade for me as I though. Will manually update and retest.

timhourigan commented 11 years ago

So, its working for me now. I had an issue with updating from 0.4.0 to 0.4.1. It looks like robotframeworklexer is offline. I installed that manually (again) and removed the install dependency in 0.4.1 and I now get test step output in LaTeX.

Thanks for your efforts and apologies for the confusion.

datakurre commented 11 years ago

Ok. Thanks for the report.