I am using visual studio code to program in python and I am attempting to run unittests but my test files are not being discovered. I am getting the following message:
"No tests discovered, please check the configuration settings for the tests."
My script (problem1.py) and my test script (problem1_test.py) are in the same directory. My settings are configured as follows:
{
"python.pythonPath": "C:\\Users\\Adam\\AppData\\Local\\Programs\\Python\\Python36\\python.exe",
"python.unitTest.unittestArgs": [
"-v",
"-s",
".",
"-p",
"*test.py"
],
"python.unitTest.unittestEnabled": true,
"python.unitTest.pyTestEnabled": false,
"python.unitTest.nosetestsEnabled": false,
"python.unitTest.promptToConfigure": false
}
Not sure if I am missing something, any help would be appreciated.
Aucun commentaire:
Enregistrer un commentaire