Code Monkey home page Code Monkey logo

Comments (4)

mtreinish avatar mtreinish commented on June 18, 2024

Is this basically the same thing as #14 or does it differ somehow?

from stestr.

ssbarnea avatar ssbarnea commented on June 18, 2024

They are clearly related but I am not sure if identical. Shortly if I could define a STESTR_STRATEGY=debug that makes it start the debugger on failure I would extremely happy.

Now if I think a little bit more there is something different. As far as I know we cannot really use the debugger when we run tests in parallel and disabling parallel run is not something we want.

Thus I think this feature could be implemented in a smart way: only if you have test failures, rerun those with debug enabled. I am aware about the small chance that they would pass when run sequentially, but we can live with this risk.

If you think these are duplicated feel free to close this one and lets move the useful feedback into one ticket.

from stestr.

aspiers avatar aspiers commented on June 18, 2024

I don't think they are identical. AFAICS #14 would still require you to instrument your code with pdb.set_trace(), whereas the suggestion here seems to propose automatically dropping into a debugger on test failure without having to instrument - and I think that's a worthwhile idea.

from stestr.

aspiers avatar aspiers commented on June 18, 2024

So I just tried to use stestr with pdbpp (which is far better than pdb) and had mixed success. A basic stestr run my.test.case fails as expected unless -n is used, and then it works OK-ish, but interactive history editing and completion is completely broken :-(

In comparison it works perfectly when running python -m testtools.run my.test.case in the exact same virtualenv. So something in stestr or subunit is screwing with the interactive terminal functionality. This is really frustrating. A partial workaround is to wrap the run via rlwrap but that only brings interactive editing/history, not completion.

from stestr.

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.