Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can protractor be used for Test Driven Developement?

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.

like image 397
user3061796 Avatar asked Aug 20 '26 06:08

user3061796


2 Answers

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.

like image 123
Philip Bulley Avatar answered Aug 21 '26 21:08

Philip Bulley


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

like image 37
Walter Brand Avatar answered Aug 21 '26 19:08

Walter Brand



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!