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.
--
--001a11c3490876313f04f1cf02f1
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"><<a href=3D"mailto=
:jmcnamara13 at gmail.com" target=3D"_blank">jmcnamara13 at gmail.com</a>></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"><br>
You can see what (intentionally) 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>
<br></blockquote></div><br></div><div class=3D"gmail_extra">Hi,<br><br></di=
v><div class=3D"gmail_extra">BTW, the output of the "FAILURES" se=
ction in the log above doesn't appear in red like ordinary pytest failu=
res. (The pass/fail does appear in colour however.)<br>
<br></div><div class=3D"gmail_extra">From the "Working with non-python=
tests" 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#non-py=
thon-tests">http://pytest.org/latest/example/nonpython.html#non-python-test=
s</a><br>
<br>> Note:<br>> repr_failure(excinfo) is called for representing tes=
t failures. If you create custom<br>> collection nodes you can return an=
error representation string of your choice.<br>> It will be reported as=
a (red) string.<br>
<br></div><div class=3D"gmail_extra"></div><div class=3D"gmail_extra">I tri=
ed the Yaml example from the pytest docs and it's fail output isn't=
in red either.<br><br></div><div class=3D"gmail_extra">Are the docs incorr=
ect or out of sync here or am I missing some additional formatting to get t=
he red string output.<br>
<br></div><div class=3D"gmail_extra">John.<br>-- <br><br></div></div>
--001a11c3490876313f04f1cf02f1--
More information about the testing-in-python
mailing list