No subject


Fri Feb 7 01:18:14 PST 2014


    http://pytest.org/latest/example/nonpython.html#non-python-tests

"Note: repr_failure(excinfo) is called for representing test failures. If
you create custom collection nodes you can return an error representation
string of your choice. It will be reported as a (red) string".

I tried the Yaml example from the pytest docs and it's fail output isn't in
red either.

Are the docs incorrect or out of sync here or am I missing some additional
formatting to get the red string output.


John.
--

--001a11c383c6a5fa0704f1cf123e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 6=
 February 2014 01:51, John McNamara <span dir=3D"ltr">&lt;<a href=3D"mailto=
:jmcnamara13 at gmail.com" target=3D"_blank">jmcnamara13 at gmail.com</a>&gt;</sp=
an> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">You can see what (intenti=
onally) failing test cases look like here:<br>
<br>
=A0 =A0 <a href=3D"https://travis-ci.org/jmcnamara/pytest_c_testrunner/jobs=
/18315539" target=3D"_blank">https://travis-ci.org/jmcnamara/pytest_c_testr=
unner/jobs/18315539</a><br></blockquote></div><br><br>Hi,<br><br>(Sorry, fo=
r the repost, the last message got split).<br>
<br>The output of the &quot;FAILURES&quot; section in the log above doesn&#=
39;t appear in red like ordinary pytest failures. (The pass/fail does appea=
r in colour however.)<br><br>From the &quot;Working with non-python tests&q=
uot; section of the pytest docs I expected that they would:<br>
<br>=A0=A0=A0 <a href=3D"http://pytest.org/latest/example/nonpython.html#no=
n-python-tests">http://pytest.org/latest/example/nonpython.html#non-python-=
tests</a><br><br>&quot;Note: repr_failure(excinfo) is called for representi=
ng test failures. If you create custom collection nodes you can return an e=
rror representation string of your choice. It will be reported as a (red) s=
tring&quot;.<br>
<br>I tried the Yaml example from the pytest docs and it&#39;s fail output =
isn&#39;t in red either.<br><br>Are the docs incorrect or out of sync here =
or am I missing some additional formatting to get the red string output.<br=
>
<br><br>John.<br>-- <br>=A0<br></div></div>

--001a11c383c6a5fa0704f1cf123e--



More information about the testing-in-python mailing list