How do I configure to color coverage on Azure Functions (Python) Project?
See original GitHub issueI try to apply your extension to Azure Functions (Python) Project.
However, vscode editor lines are not colored, and āNo Coverageā is displayed.
When I exuecute your project example, the editor lines are colored, and āxx% Coverageā is displayed. So, my local machine seems to be fine.
My project repository is here.
And I upload 2 screenshots. (your project example and my Azure Functions project)
I switched to Python interpreter from projectās .venv
to local machineās global exe, however the problem didnāt solve.
How do I configure to color coverage on Azure Functions (Python) Project?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Azure DevOps Pipeline: Showing code coverage report for ...
To see code coverage I think you need to add task PublishCodeCoverageResults@1.
Read more >Python developer reference for Azure Functions
This guide is an introduction to developing Azure Functions by using Python. The article assumes that you've already read the AzureĀ ...
Read more >Customizing Code Coverage Analysis - Visual Studio (Windows)
To select the run settings file, on the Test menu, choose Select Settings File. To specify a run settings file for running tests...
Read more >Code coverage testing - Visual Studio (Windows)
Show Code Coverage Coloring in the Code Coverage Results window. By default, code that is covered by tests is highlighted in light blue....
Read more >Create your first durable function in Azure using Python
In Visual Studio Code, press F1 (or Ctrl/Cmd+Shift+P ) to open the command palette. In the command palette, search for and select Azure...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ecormaksin I ran your example project locally and was able to get the coverage to be picked up by doing the following.
The key might have been to run the coverage report across the whole project. Let me know if that helps!
py.test --cov-report xml:cov.xml --cov
@ecormaksin excellent! Happy coding š