[TIP] Running C unit tests with pytest
holger at merlinux.eu
Mon Mar 3 03:10:28 PST 2014
On Fri, Feb 07, 2014 at 11:13 +0000, John McNamara wrote:
> On 6 February 2014 01:51, John McNamara <jmcnamara13 at gmail.com> wrote:
> > You can see what (intentionally) failing test cases look like here:
> > https://travis-ci.org/jmcnamara/pytest_c_testrunner/jobs/18315539
> (Sorry, for the repost, the last message got split).
> The output of the "FAILURES" section in the log above doesn't appear in red
> like ordinary pytest failures. (The pass/fail does appear in colour
> From the "Working with non-python tests" section of the pytest docs I
> expected that they would:
> "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.
probably a bug. Please consider re-submitting your text here as a bug report.
More information about the testing-in-python