What is the best way to do unit testing for software that behaves differently for different users?

As indicated in the question title, what is the best way to pre-test modules in an application that behaves differently depending on which user is currently logged in?

Also, for applications that support internal state information, what is the best way to perform testing and manage all tests?

+3
source share
4 answers

If you mean a system user, for example. windows login - then for unit testing it is best to separate your code from this dependency.

, , . , .

(, , , , , , .. - ), . , .

+2

( ). , , , , .

, () .

+1

, - , , " " " , ".

, , .

, .

: , . .

, unit test .

+1

, , , [ n ; n - ].

, [ n * m; n - , m - ].

0

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


All Articles