pycharm运行测试
时间: 2023-09-07 22:14:20 浏览: 98
要在Pycharm中运行测试,你可以按下Ctrl Shift F10键,或者在测试类内右击,选择"Run unittests in test_solver"。这将使用预定义的配置模板来执行我们的测试单元。在测试程序中,需要满足Python unit testing framework的标准,即从unittest模块中导入相应的测试类,并将测试函数名称加上 "test"前缀。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [最全Pycharm教程(9)——创建并运行一个基本的Python测试程序](https://blog.csdn.net/weixin_36670529/article/details/101788438)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文