We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在使用pytest-xdist进行分布式自动化测试时,无法将log输出到终端,但是可以正常写入到log文件中,后续是否有对此的插件的支持和优化
The text was updated successfully, but these errors were encountered:
nb_log的logger对象原生logging.Logger类型,所以这种通用问题是pytest对日志的策略,并不是nb_log要做什么变化,因为nb_log就是logging.Logger对象。
这样问文心一言
Sorry, something went wrong.
pytest默认是为了避免低日志级别打扰用户,所以屏蔽你日志啊,这种问题是pytest对日志的策略,有参数可以控制的
我排查过,并不是pytest的配置的问题,因为我不使用pytest-xdist这个并发插件,log日志是可以正常打印出来的,只有使用pytest-xdist这个插件,并且设置了并发量,才会导致无法输出到屏幕 pytest-xdist没有设置并发量(相当于没有启用插件)
pytest-xdist设置并发量
这种问题应该搜索pytestxdist啊,可能你没掌握有什么传参呗。问 文心一言就可以了。
No branches or pull requests
在使用pytest-xdist进行分布式自动化测试时,无法将log输出到终端,但是可以正常写入到log文件中,后续是否有对此的插件的支持和优化
![image](https://private-user-images.githubusercontent.com/165650646/348163974-342d45d1-aa88-49f5-ad8f-595220ebe6e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODI3MzgsIm5iZiI6MTczOTI4MjQzOCwicGF0aCI6Ii8xNjU2NTA2NDYvMzQ4MTYzOTc0LTM0MmQ0NWQxLWFhODgtNDlmNS1hZDhmLTU5NTIyMGViZTZlMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNDAwMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZmI2YmVmYzgxYzM2ODBkZmRkNDJlODk4OTliZDljYzI5MTAxMDI4MmNjYzdjYzUyZWQxODJjOGQzNDNkMzMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Tf4ZPDreOIu7R3W9Jo7mhpCGJlRMW1mxn00giwTeqLE)
The text was updated successfully, but these errors were encountered: