15

Do anybody here work with a codebase that actually has tests?

Or at the very least, the codebase has a domain layer, rather than puking lines of code randomly in the controller?

Am I trying to find an unicorn?

Comments
  • 3
    We use tests and have a multi layer architecture.

    We have been moving away from all code in page for many years and 2 years ago we took it one step further and started separating database code from business logic and ui logic.

    So se have sort or 4 layers of code server side but not everything is rewritten yet.

    And we are also making sure that ad much new code as possible is testable and have at least some tests.

    Currently around 550 tests and growing.
  • 1
    @Voxera sounds like my dream job ;-;
  • 2
    Yes. We have a large code base in c++ that isnt tested. But we have been moving everything to c# desktop and webbased applications. In desktop we use the mvvm pattern so views are separate from view models and businsess logic is separate from the view and db. On the web we have Angular frontend fully tested with karma and jasmie the project im on now just passed 1000 test and counting. The backend is a web api that uses IOC and the repository pattern. Everything is tested. Last I looked there were over 7000 test for just that project.
  • 2
    @rephiscorth well I have stayed in one place for over 20 years ;)
  • 0
    It is not too late - you can start writing unit tests for your code today.
  • 0
    We have a relatively large iOS Objective-C project. A unit test suite exists but it hasnt even compiled in over a year. And it probably never will because I'm moving from the team soon and I seem to be the only person who cares enough to try to fix it.
  • 1
    Every code path tested, valgrind automated tests, asan and tsan testing, multilayer architecture on all projects OR microservices based projects only. Since I use poco, MySQL testing is simulated with SQLite
Add Comment