How to check Subversion functions?

I am implementing an application that includes some svn features.

I am going to write some unit tests for an application, however, as you would suggest I write unit tests for svn commands such as checkout, update, status, etc.

Thank!

+3
source share
2 answers

Wrap your SVN-specific code inside a class, implementing an interface. When testing your main application, stubs / fake / mock / regardless of your SVN class through the interface. This way you can unit test run most of your application.

SVN unit test, . SVN.

+4

:

  • svn; , , , svn ( mock, ).
  • "" , .
+2

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


All Articles