Pytest
Running python unit test over LSF
I need to parallelize my python unit-tests which I wrote using the default unittest module. I\'m trying to decide between two approaches:[详细]
2023-03-30 20:01 分类:问答unit testing Python objects with pytest
I\'ve a method that returns a list of objects that meet certain criteria result = find_objects(some_criteria)[详细]
2023-03-01 23:35 分类:问答-
Python+Requests+PyTest+Excel+Allure 接口自动化测试实战
Unittest是python标准库中自带的单元测试框架,Unittest有时候也被称为PyUnit,就像JUnit是Java语言的标准单元测试框架一样,Unittest则是Python语言的标准单元编程客栈测试框架。[详细]
2023-02-24 09:18 分类:开发 Generating py.test tests in Python
Question first, then an explanation if you\'re interested. In the context of py.test, how do I generate a large set of test functions from a small set of test-function templates?[详细]
2023-02-08 20:34 分类:问答How can I combine stdlib logging with py.test
I am using py.test to test some modules of mine that contains quite a bit of stdlib logging. I would of course like for the logging to log to stdout, which is captured by py.test, so that I will get a[详细]
2023-02-05 20:31 分类:问答Logging within pytest tests
I would like to put some logging statements within test function to examine some state variables. I have the following code snippet:[详细]
2023-02-03 17:50 分类:问答Is there a way to control how pytest-xdist runs tests in parallel?
I have the following directory layout: runner.py lib/ tests/ testsuite1/ testsuite1.py testsuite2/ testsuite2.py[详细]
2023-02-03 10:29 分类:问答py.test with non-python tests (specifically, with cxxtest)
I work with a team that develops MPI-based C++ numerical applications. The group uses cxxtest for constructing individual unit tests or small suites, but 1) there are some complications aggregating ac[详细]
2023-01-22 07:06 分类:问答Possible to use unittest-like fixtures in py.test?
I really like py.test, but I am having lots of difficulty understanding how funcargs work. Is it possible to use a command line argument or an extension to enable the use of s开发者_如何学运维omethi[详细]
2023-01-16 23:53 分类:问答How to make py.test or nose to look for tests inside all python files?
I do have several small mo开发者_如何学Godules where the tests are inside them and py.test or nose does not look for them because they do not contain test in their filename.[详细]
2023-01-15 22:14 分类:问答