2014-03-07 35 views
0

我一直是老派的程序員,並沒有真正在我的項目中使用測試。我現在想改變它,但由於它不是一個工業項目,但我自己想問:使用客戶端測試休息服務

使用客戶端來測試我的Rest服務有什麼問題嗎?

爲什麼我需要編寫一個單元測試來測試其餘的後端,然後寫一個客戶端,當我可以擴展客戶端?

是否有任何約定,測試語言應該與實現語言相同?我正在談論Java休息和JS客戶端。

我認爲這會使我的方法更加敏捷和快速。

回答

0

Why would I need to write a unit test to test the rest backend and then write a client when I can just extend the client?

基本上在測試情況下,您測試一切而客戶端只可以使用該接口的一個子集,絕不會打一個可能的錯誤。

Is there any convention that the testing language should be the same as the implementing language ?

號但也有卡入的Java IDE,Selecting java Automation testing tools for web application非常好的工具(甚至自動生成)。

相關問題