behave-parallel-runners
Объявление своего раннера
Рекомендуется запуск в несколько процессов, так как:
- При работе в потоках есть проблемы с Allure репортером.
- Для запуска субинтерпретаторов необходима версия python 3.14, что не поддерживается некоторыми зависимостями.
from behave.configuration import Configuration
from behave.runner import ITestRunner
from behave_parallel_runners.runner import ParallelRunner
from behave_parallel_runners.workers import WorkerPoolExecutor
from behave_parallel_runners.workers.process import ProcessWorker
from behave_parallel_runners.tasks import FeatureTaskAllocator
class FeatureParallelRunner(ParallelRunner):
def __init__(self, config: Configuration):
super().__init__(
config=config,
task_allocator=FeatureTaskAllocator(config),
worker_pool_executor=WorkerPoolExecutor(config, ProcessWorker),
)
ITestRunner.register(FeatureParallelRunner)
Metadata
Release files for behave-parallel-runners 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| behave_parallel_runners-1.1.0.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| behave_parallel_runners-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.9 kB
Release files / behave_parallel_runners-1.1.0.tar.gz
| Download URL | behave_parallel_runners-1.1.0.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e6f8e826237d71de7f5b02a4f0062766cedaf35a2ddfbb2e01385c2a237c64f
|
|
BLAKE2b-256 checksum How to use checksums |
79872fd5edecb0c88f8de63d0a1cfc6f14014df2b47759b856afaf860414a29e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Darwin/24.5.0
|
Release files / behave_parallel_runners-1.1.0-py3-none-any.whl
| Download URL | behave_parallel_runners-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6e9023d60506e4743428c226f11568267baa158ea27af749b7880eb772ce28a
|
|
BLAKE2b-256 checksum How to use checksums |
1538c25cf604a4f99a1e767a91da1e76d46ee64a78fe19c48c8ccdcc8f60d86e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Darwin/24.5.0
|