python-unittest
PyUnit with child processes
In some Python code, I fork and do some processing in a child process while the parent waits for it to exit. It doesn\'t exec after the fork.[详细]
2023-02-08 09:17 分类:问答A way to output pyunit test name in setup()
Is there a way in python for a pyunit test to outp开发者_StackOverflow中文版ut the test it\'s currently running.Example:[详细]
2023-01-31 12:14 分类:问答Python Unit Testing: Automatically Running the Debugger when a test fails
Is there a way to automatically start the debugger at the point at which a unittest fails? Right now I am just using pdb.set_trace() manually, but this is very tedious as I need to add it each time a[详细]
2023-01-29 10:53 分类:问答Calling a Selenium Testcase in python
I\'m trying to run a selenium testcase in python. I have testcases that I can run direct开发者_JS百科ly from the command line no problem with[详细]
2023-01-20 01:02 分类:问答How to stop all tests from inside a test or setUp using unittest?
I\'m extending the python 2.7 unittest framework to do some function testing. One of the things I would like to do is to stop all the tests from running inside of a test, and inside of a setUpClass()[详细]
2023-01-18 00:09 分类:问答Is test suite deprecated in PyUnit?
Following the example in PyUnit, I came up with the following unittest code that works fine. import unittest[详细]
2023-01-04 15:20 分类:问答Pyunit: "Import Site"
Using pyUnit to do what is currently a very small and simple unit test I am getting the message: \'import site\' failed; use -v for traceback[详细]
2022-12-21 04:47 分类:问答What is the keyboard shortcut to run all unit tests in the current project in PyDev + Eclipse?
I know Ctrl + F9 runs a sin开发者_StackOverflow社区gle file. How to run them all? If there is no such thing, how to bind one keyboard shortcut to it?Why not:[详细]
2022-12-18 11:14 分类:问答Test framework for component testing
I am looking for a test framework that suit my requirements. Following are the steps that I need to perform 开发者_如何学JAVAduring automated testing:[详细]
2022-12-17 03:07 分类:问答Disable individual Python unit tests temporarily
How can individual unit tes开发者_StackOverflowts be temporarily disabled when using the unittest module in Python?Individual test methods or classes can both be disabled using the unittest.skip decor[详细]
2022-12-16 15:53 分类:问答