From the course: Practical Application Architecture with Entity Framework Core
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Common testing mistakes - Entity Framework Tutorial
From the course: Practical Application Architecture with Entity Framework Core
Common testing mistakes
- [Instructor] We have a framework and some examples to use to begin building out unit tests for the application. But before we leave unit testing, I want to discuss some of the ways that I've most often seen testing go wrong. Bad tests have turned many good developers away from testing. Getting good developers to write tests early and often needs to be part of the development process to keep down bad grades, and believe it or not, speed up development. "Tests are great, "but we don't have time to write them," is a myth. Writing tests almost always has a positive impact on a project's development time when done right. Yes, tests do involve code that takes time to type out. But that time is returned in a couple of different ways. The first key to test saving time is not writing tests that don't test logic. Get and set has been well tested. Adding your own tests isn't going to make it any better. I can test a thousand simple property getters and write a lot of code and feel good about…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.