문제

Can protractor be used for Test Driven Developement ? i want to know whether we can use Protractor for TDD. If yes ,please share an example.

도움이 되었습니까?

해결책

TDD usually refers to unit testing, which can be achieved using Karma. Protractor which wraps Selenium is intended for functional testing - this basically makes sure that the views on your app are working as expected. You wouldn't usually use these kind of tests to drive your development process as they can't test the actual input/output of your methods, which is what you really want to be doing in a TDD workflow.

다른 팁

You can use Protractor to do the end to end testing. That complements the unit testing which is part of the TDD process.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top