Skip to content
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

Should Uninstall remove all test classes? #14

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

NReilingh
Copy link

I think, since test classes are created and usually destroyed using tSQLt procedures, that the user expectation for running tSQLt.Uninstall is that all of their test classes will be removed as well, since after that point, the DropClass procedure is no longer available.

So, I propose that Uninstall should remove all test classes automatically.

(I haven't verified the last test here works as expected — if this sounds like a good idea to people, I'll double-check and make sure everything works.

NReilingh and others added 5 commits November 27, 2016 12:33
This procedure runs DropClass on all schemas that are marked with a tSQLt.TestClass extended property. This can be used to easily reset your development environment, especially for those of us who make heavy use of query shortcuts (like RunAll) in lieu of GUI tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant