Giter Site home page Giter Site logo

expected failures about nekexamples HOT 5 CLOSED

nek5000 avatar nek5000 commented on July 17, 2024
expected failures

from nekexamples.

Comments (5)

maxhutch avatar maxhutch commented on July 17, 2024

Great idea!

from nekexamples.

RonRahaman avatar RonRahaman commented on July 17, 2024

The unittest.expectedFailure decorator breaks Twisted Trial's test runner (https://twistedmatrix.com/trac/ticket/4811), which is used in buildbot. I'd really like to maintain interoperability with buildbot, so the how should be mark the expected failures?

I know that the unittest.skip decorator works. This won't run the decorated test method at all, so the failure won't appear. Is this acceptable?

from nekexamples.

maxhutch avatar maxhutch commented on July 17, 2024

Looks like the fix in Twisted Trial went stale. unittest.skip seems ok for now, but can we leave this open with a blocked externally label or something?

from nekexamples.

RonRahaman avatar RonRahaman commented on July 17, 2024

Upon consideration, I'm not satisfied with using unittest.skip. I'd like to always run the expected failures to see exactly how/why they fail. That information is valuable.

I think we can mark the expected failures at the level of buildbot (not at the level of unittest). Each TestCase is run by buildbot using a Trial BuildStep. Like all BuildSteps, there are parameters can control how failures and warnings are handled. For the TestCases that are expected failures, we can set flunkOnFailure=False and warnOnFailure=True. That way, the expected failures are still run, but if (or rather, when) they fail, buildbot will not mark the overall build as a failure. I think they'll also be colored yellow (instead of red) in the GUI.

What do you think?

from nekexamples.

maxhutch avatar maxhutch commented on July 17, 2024

Sounds good. Can we also annotate them in case someone is running locally?

On Wed, Jul 27, 2016, 06:04 Ron Rahaman [email protected] wrote:

Upon consideration, I'm not satisfied with using unittest.skip. I'd like
to always run the expected failures to see exactly how/why they fail. That
information is valuable.

I think we can mark the expected failures at the level of buildbot (not at
the level of unittest). Each TestCase is run by buildbot using a Trial
http://docs.buildbot.net/0.8.8/manual/cfg-buildsteps.html#trial
BuildStep. Like all BuildSteps, there are parameters
http://docs.buildbot.net/0.8.8/manual/cfg-buildsteps.html#common-parameters
can control how failures and warnings are handled. For the TestCases that
are expected failures, we can set flunkOnFailure=False and
warnOnFailure=True. That way, the expected failures are still run, but if
(or rather, when) they fail, buildbot will not mark the overall build as a
failure. I think they'll also be colored yellow (instead of red) in the GUI.

What do you think?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABd7pJ0g3kEsLvmVVyYyBCd2ebXKc_Zgks5qZ1djgaJpZM4JNeA6
.

from nekexamples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.