Unit testing of huge applications - Proven methodologies?

I have been working in Windows form applications and ASP.Net applications for the past 10 months. I always wondered how to do proper unit testing in a complete application using all the scripts. I have the following questions regarding them:

  • What are the standard mechanisms for performing testing and recording test cases?
  • Are methodologies changed based on the nature of the application, such as Windows Forms, web applications, etc.
  • What is the best way to make sure we look at all the scenarios? Any popular books on this?
  • Popular tools for performing unit testing?
+3
source share
5

, , unit test, , .Net, . , , , , ( , ...). , ( ). ​​

, V-, :

. ( ), . . , , CI Server ( ) , , , , , .

, , "" ( ) , , . , , . . , StoryTeller .

, . , , , . , , .

, :

?

.Net Test Units . ( ), ( ). .

, Windows Forms, - ..?

. , . , .

, , ? ?

, , , , , , . , unit test , , , . -, , .

?

, .

+2

: Michael Feathers. .

, "" unit test it:-( "" , - - , unit test ( ) .

, unit test ( Perather - " " ). , , , , 1000 , . , , , . , , , , , ... , .

, ( , , - - ;). , . , . , / , (, ). , , , . , " " , . , , , ...

, " " "" . , . , , , . . , 60%, .

+3

, . , , , . , . , , , .

NUnit - , VS ( , VS2008, , VS2005 )

- , , , , , , , .

+1

? .NET. NUnit MbUnit.

http://www.nunit.org/

http://www.mbunit.com/

MbUnit , . , , . (, Gallio, MbUnit) -, . , , Fixture. , . :

void when_my_class_is_sent_a_user_it_should_save_it()

[MethodName_StateUnderTest_ExpectedBehavior]

, Windows Forms, - ..? . , - . , , .

, , ? Test Driven Design ( , , ). .

? : .Net by Roy Osherove # NUnit

? , NUnit MbUnit. MSTest ( VS2008), xUnit . , NUnit MbUnit.

+1

10 , , unit test , ( ) .

, , FitNesse StoryTeller.

0

Source: https://habr.com/ru/post/1737324/


All Articles