Laravel Testing: Best Practices by Benjamin Crozat

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 13

  • @LoganathanNatarajanlogudotcom
    @LoganathanNatarajanlogudotcom 7 месяцев назад

    Thanks for reviewing and sharing your feedback.

  • @aleksandarrancic6470
    @aleksandarrancic6470 10 месяцев назад +3

    I must agree with you. In real time developers work on different projects. The clients donot want to pay for testing. So, when a feature is done, if the developer does not have a task called feature/unit tests he will start working on other tasks or projects. Many authors speak / write about ideal situations when developers have time and tasks to make unit/feature tests. In many companies, it is not true. We know what an ideal situation is, but real life is something different.

    • @DCBlogdev
      @DCBlogdev 10 месяцев назад

      When I work on client projects I don’t ask time for testing its part of the task.
      The more you test the quicker you will become at it.

    • @maxshaian7260
      @maxshaian7260 10 месяцев назад +1

      I also quite disagree with the pest approach. Pest makes the tests code not OOP enough and so far I don't see a lot of advantages. I worked with it a lot, btw

  • @ivanjelenic5627
    @ivanjelenic5627 10 месяцев назад +1

    When doing automated deployment, you can set it up to only deploy on, for example, a new git version tag, so that it ignores other cases.

  • @ThalisUmobi
    @ThalisUmobi 10 месяцев назад +4

    I really like this kind of 'react' content, because we have double bang for the buck. We get to know other peoples opinions, through the lensing and filtering of your experience. So is a lot 'safer' to consume the content.

  • @medilies
    @medilies 10 месяцев назад

    The name is: the Povilagen

  • @roman_zabigaliuk
    @roman_zabigaliuk 10 месяцев назад +2

    First of all, thank you for advicing such a great collegue!

  • @ivanjelenic5627
    @ivanjelenic5627 10 месяцев назад +1

    Some people say that you shouldn't fake http requests from outside sources (e.g. API) when testing, but use the actual live source.

    • @OliverKurmis
      @OliverKurmis 10 месяцев назад

      This would be an integration test

  • @medilies
    @medilies 10 месяцев назад

    I'm fully against promoting feature tests over unit tests. If testing features (routing->middleware->permission->validation->logic->data->view) is the most important thing in the app, then it should be a cruddy app. If it isn't possible to get the needed test value by just testing the logic, then the app architecture should be questioned.

    • @LaravelDaily
      @LaravelDaily  10 месяцев назад +1

      You would be surprised how many projects are actually cruddy or can be viewed as cruddy