Developing UI in JavaScript using TDD Principles

前端 未结 7 1988
有刺的猬
有刺的猬 2020-12-22 22:54

I\'ve had a lot of trouble trying to come up with the best way to properly follow TDD principles while developing UI in JavaScript. What\'s the best way to go about this?

7条回答
  •  执笔经年
    2020-12-22 23:25

    This is the primary reason I switched to the Google Web Toolkit ... I develop and test in Java and have a reasonable expectation that the compiled JavaScript will function properly on a variety of browsers. Since TDD is primarily a unit testing function, most of the project can be developed and tested before compilation and deployment.

    Integration and Functional test suites verify that the resulting code is functioning as expected after it's deployed to a test server.

提交回复
热议问题