How to mark the unit test method as deprecated or generally save the method?

I have some testing methods that are no longer needed, can there be some reason to keep these tests and mark them as deprecated (if so, use the "deprecated" method attribute) to do this)? Or will I just delete them?

+4
source share
3 answers

Assuming you are using MsTest, you have several options.

  • Add the [Ignore] attribute to [TestMethod]
  • Remove attribute [TestMethod]
  • Delete code
  • //the code:)

If you are really sure that you will no longer need it, I will delete it.

+7
source

-, . , , , . grokking .

, , - .

+2

, . , , (System Under Test). , .

, unittesting . nunit IgnoreAttribute, .

+2

All Articles