简体   繁体   中英

How to run just one django test from file with VSCode?

I have some tests in tests.py and want to run just one of them with VSCode easily. Of course, I can do it via command line, but I think it is possible to configure VSCode to be able to do it via GUI.

请参阅https://code.visualstudio.com/docs/python/unit-testing ,其中显示了两种运行单个测试的方法(测试浏览器和测试镜头)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM