How can we test our module in Magento 2 with test cases?

We recommend using the Magento Test Framework for testing. Information can be found here: http://devdocs.magento.com/guides/v2.0/mtf/mtf_introduction.html. In addition, there are some helpful “How To” links on testing here: http://devdocs.magento.com/guides/v2.0/howdoi/mtf/mtf.html.