unit testing in VS2022 with google test

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

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

  • @MrJasonmoe567
    @MrJasonmoe567 8 месяцев назад +4

    I watched a ton of videos explaining how to use Google test, but man you explained it the best. God bless you.

  • @JihoonSongTech
    @JihoonSongTech Год назад +5

    best recent vs2022 video for me! thanks

  • @lurk9r
    @lurk9r Год назад +1

    Thank u man, i was testing my project and it suddenly stopped with errors, i did it like you did and it worked. Thank you so much❤

  • @Risusdan
    @Risusdan 4 месяца назад

    Thanks for your video! You just save my day.

  • @ВикторНикончик
    @ВикторНикончик Месяц назад

    Thank you very much for the tutorial ❤

  • @MapleLeavesInAutumn
    @MapleLeavesInAutumn 2 месяца назад

    I am trying to port some libraries and binaries from linux environments to windows.
    From what I can check, visual studio doesn't really install gtest in the development environment, and rather it copies the library in this gtest project directories.
    In ...\VC\Tools\MSVC\14.41.34120\include there is nothing related to gtest from what I can find and grep.
    Has someone installed successfully gtest manually in the visual studio environment in order to have something working for multi-platform projects ?

  • @vikramgondane4821
    @vikramgondane4821 9 месяцев назад

    Can we create library application? i.e Configuration type DLL instead of .exe for test application. I tried this, I changed Configuration type to DLL but test discovery is not happening in VS2022. Is there any way to make it happen?

  • @kpanat
    @kpanat Год назад

    Тут какой-то макрос устанавливается. Надо попробовать. До сих пор все попытки не увенчались успехом. Я вобще пришёл к выводу что сейчас эти тесты вобще не работают и от них лучше отказаться. Но мб я поменяю своё мнение... Посмотрим!

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

      привет. получилось поставить?

  • @delwinmathewjoseph6210
    @delwinmathewjoseph6210 2 года назад

    Hi Andy, i got stuck with setting up gtest for testing my code. Could you please help me figure it out?

    • @delwinmathewjoseph6210
      @delwinmathewjoseph6210 2 года назад

      @@AndyBlackburnart how to write test cases for functions with interdependent functions, classes n headers

    • @delwinmathewjoseph6210
      @delwinmathewjoseph6210 2 года назад

      @@AndyBlackburnart where can we connect to share it?

    • @delwinmathewjoseph6210
      @delwinmathewjoseph6210 2 года назад

      @@AndyBlackburnart sorry I got caught with flu and couldn't work for quite a time

    • @AndyBlackburnart
      @AndyBlackburnart  Год назад

      Sorry I didn't see your comment for a long time, you can add me on discord: Spiffy664#4376

  • @malplena2888
    @malplena2888 6 месяцев назад

    "i found this on the internet not sure what it does"

    • @AndyBlackburnart
      @AndyBlackburnart  6 месяцев назад +1

      this is how to set up unit testing with google test suite in visual studio and shows how to do a simple test.
      Testing code is essentially a way to prove that code works as expected by calculating what the output should be and then giving it the inputs to get the expected output.