Browser automation tests are horrifically expensive. Unit tests are cheap if (1) you don’t let them get expensive (yesterday I wrote tests a process that needed key pairs, I genned keys once and hard coded them) and (2) the design is appropriate.
One design might be untestable. Another design might sacrifice design for flexibility. There is another design which is testable and good in other respects.
The worst cost of tests is that they take a long time to run.
Browser automation tests are horrifically expensive. Unit tests are cheap if (1) you don’t let them get expensive (yesterday I wrote tests a process that needed key pairs, I genned keys once and hard coded them) and (2) the design is appropriate.
One design might be untestable. Another design might sacrifice design for flexibility. There is another design which is testable and good in other respects.
The worst cost of tests is that they take a long time to run.