MVVM architecture

Does anyone build MVVM architecture in your project?

Recently we want to add unit test into our project, and thinking about refactoring architecture to MVVM to make unit test easier. Our goal is that only “view” parts are dependent to cocos2d-x, and make rest parts unit testable.

Or can anyone share about your test-driven architecture in your cocos2d-x project?

How about UI unit test?

Thanks,
Jo