-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System diagram procedures are currently included in the code coverage results #45
Comments
Hi @davidlyes, SQLCover already has the ability to take a filter to exclude specific objects ("sp_.*diagram" would work for you) but there is nothing in the SQLTest ui to allow you to specify anything that can be passed to SQLCover. I am a bit hesitant to add in specific filters because although you don't want to see these someone else might want to see them. A half way measure might be to get SQLCover to look in a config file in a known place for additional filters, that way it will work with SQLTest and anywhere else. So your options are:
ed |
Thanks for your quick feedback @GoEddie! I will go back to RedGate to see if they would be able to implement filters into their UI, since it is something that is already supported by SQLCover. |
Hi Ed. |
The system diagram procedures are currently included in the code coverage results.
These shoudn't be included as they are system procedures so we shouldn't need to write tests for them, and it negatively impacts the total coverage %.
I believe they can be recognised by either their name (sp_%diagram) or by the extended property microsoft_database_tools_support.
I am currently using Code Coverage as part of the RedGate SQLTest plugin.
I had approached RedGate about this and they pointed me to here :)
https://forum.red-gate.com/discussion/85304/how-can-i-exclude-the-system-stored-procedures-for-diagrams-from-code-coverage-results
@GoEddie
The text was updated successfully, but these errors were encountered: