Testing a View in an MVFM WPF Application

I am just starting in the exciting world of WPF development, having been a C ++ developer for many years.

Testing applications with rich user interfaces has, of course, always been difficult. One of the problems associated with this has traditionally been that in most Windows applications, the user interface, user interface logic, and application logic are completely interdependent and cannot be tested in isolation.

I am very attractive for the MVVM approach, which will allow me to separate the user interface from the application and run a large number of automatic tests on my view models, under which all my logic will be, from the point of view of fairness, a dumb presentation model client.

This nicely, well, and neatly separates application logic testing from the application user interface. BUT, it does not provide a solution for actually testing the user interface itself. Despite the fact that the view, as a rule, contains very little logic, it will still contain a huge number of errors of various types.

What is the current state in testing the view itself?

Thanks tom

+3
source share
2 answers

It is always a double-edged sword. I see it as an attempt to grab low-hanging fruits and build from there.

MVVM , View . , , , . , , , ... , ? , , , ?

, , ? , View, , , , . , . , .

, , .

... , , ..... . Model, ViewModel, . , .

+5

WPF MVVM . , , , , .

+1

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


All Articles