Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81770
| References | <CAAM3ZgbQGcDKdvZjFWq4vwcXirhh9eLM929-XdVbHGfTcLLX_Q@mail.gmail.com> |
|---|---|
| From | Fabio Zadrozny <fabiofz@gmail.com> |
| Date | 2014-12-01 16:58 -0200 |
| Subject | Re: Need Help |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16466.1417460354.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar < aezhil90@gmail.com> wrote: > Hi Guys, > > I'm a beginner of python, I just want your help. > > I'm using the Python in Pydev - Eclipse. > > How can I get the Failure values from the Console in to a txt or a csv > file? > > And how can I get the final result of the TC (lets say, OK or FAIL or > ERROR)? > > So that If I'm working with 1000 Test cases, I can easily find out the > Failed TCs and work on them. > > Please find my above questions and revert me with a good answer. > > Well, you want that to work/rerun the failed tests, PyDev does have a unittest-integration view which shows failed tests. Just run the tests right-clicking a folder -> run tests and the view should show the results (and it provides a way to show only failed tests, rerun only failures, see output, etc) -- see: http://pydev.org/manual_adv_pyunit.html The only thing is that it doesn't export that to a file... if you want to have that as an exported file, my suggestion would be using nose or pytest (which can also be used as the runners inside of PyDev -- http://pydev.org/manual_adv_pyunit.html also has more details on that) and pass a xml dump file (which I think both support). Cheers, Fabio
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Need Help Fabio Zadrozny <fabiofz@gmail.com> - 2014-12-01 16:58 -0200
csiph-web