You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like some of the unit test functionalities of the extension "Python" for the VSCode Editor included in Anaconda sessions are not working.
The View "Test" is not available and the function "Python: Discover Tests" do nothing.
I could successfully get that view and use that function on my local workstation with the "Python" extension. However I noticed that the version is not the same and the one included in Anaconda is older, so maybe an update might fix the issues?
Please see the screenshots - One with "annotations" was taken after executing "Python: Configure Tests".
The text was updated successfully, but these errors were encountered:
Ah! So I got it working by enabling pytest in the VSCode settings.
The user can enable any or all of the testing frameworks by creating an AE5 secret called vscode_settings (lower case) and include the following. These settings will then be applied when the editor session starts.
{
"python.testing.unittestEnabled": true
}
This user may wish to enable other testing frameworks as well
The user can then continue to use this secret to customize their VSCode settings. This secret must be well formatted JSON or it will not apply the settings. Above you'll see that each line is indented 4 spaces.
From the client:
It looks like some of the unit test functionalities of the extension "Python" for the VSCode Editor included in Anaconda sessions are not working.
The View "Test" is not available and the function "Python: Discover Tests" do nothing.
I could successfully get that view and use that function on my local workstation with the "Python" extension. However I noticed that the version is not the same and the one included in Anaconda is older, so maybe an update might fix the issues?
Please see the screenshots - One with "annotations" was taken after executing "Python: Configure Tests".
The text was updated successfully, but these errors were encountered: