Advanced Testing in Go

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 25

  • @RonLunde
    @RonLunde 4 роки тому +5

    Great tutorial! A suggestion, perhaps for a follow-up video, might be to discuss the tradeoffs between giving more test-specific data (which test it was, the input, output, expected) and when to show more than one failing test at a time. For example: t.Errorf("Test %d failed: Add(%d, %d) returned %d, expected %d
    ", i, test.x, test.y, result, test.expected). Some frameworks I've used will show you N failures before it bails out, which is easy to implement yourself in this kind of testing.

  • @RahulKumar-hq6wm
    @RahulKumar-hq6wm 2 роки тому +2

    Thank You bro, your well explained tutorials always help me . And Thanks again for adding such informative video Love You Brother 🔥🔥🔥

  • @a_maxed_out_handle_of_30_chars

    thank you, a good video which helped me understand all the testing types :)

  • @htalps7459
    @htalps7459 3 роки тому +1

    Great Videos, thank you. I noticed that I had to clean new lines (got = strings.TrimRight(string(buf), "
    ")) while you didn't have to; perhaps it's the Go library version?

  • @prateeksinghal7114
    @prateeksinghal7114 2 роки тому

    In my code I'm using time.Now() due to which while comparing the time for two different variables, the value is not same
    Any solution to handle this case ??

  • @miry_sof
    @miry_sof 5 років тому +2

    Do you have refrences links to folder structure of testdata/fixutres?

  • @hemanthbs2649
    @hemanthbs2649 4 роки тому

    Hi. I have written my tests using groovy and dev code in go lang. is there a way to measure code coverage?

  • @gerardjayetileke4373
    @gerardjayetileke4373 5 років тому +4

    Thank you :)

  • @khaledaman9069
    @khaledaman9069 6 років тому

    Can you please provide the link for the directory?

    • @golangdevops4816
      @golangdevops4816 6 років тому +1

      Here go --@@-- github.com/golang/go --@@--

  • @oabominavelhomemdasneves4117
    @oabominavelhomemdasneves4117 5 років тому

    THANKS! AWESOME CHANNEL

  • @mylifemyrules6586
    @mylifemyrules6586 4 роки тому

    awesome videos

  • @ducla953
    @ducla953 3 роки тому

    omg your accent is like the Peaky Blinders, I love it \m/

  • @rohitbhanot7809
    @rohitbhanot7809 5 років тому +4

    12:02 is that mocking ?? Really ??

  • @sauravkumar-bp3es
    @sauravkumar-bp3es 4 роки тому

    Hi Brother, Thank-you for these amazing tutorials, could you please teach us how to test microservices in which we are using Kafka.
    Thank-You

  • @xiangeagle6568
    @xiangeagle6568 6 років тому

    很方便啊!

  • @josephkeller2521
    @josephkeller2521 3 роки тому

    Hey all, I noticed that I'm getting the following error when trying to run specific test files:
    # golangtestexample/project/testingfolder_test
    ./main_integration_test.go:1:1: +build comment must appear before package clause and be followed by a blank line
    # golangtestexample/project/testingfolder
    ./main_test.go:1:1: +build comment must appear before package clause and be followed by a blank line
    FAIL golangtestexample/project/testingfolder [build failed]
    To the best of my ability, my file appears to have been formatted correctly,(no special characters or anything), so I'm not too sure what to do with this error. Has this functionality changed since this version of Golang?

  • @sneakdotberlin7085
    @sneakdotberlin7085 4 роки тому +2

    Testing adding x and y is not advanced testing. Testing a network request is not a good practice; intermittent network failures (or build systems with a firewall) will break your build.

  • @iraklikorpashvili5572
    @iraklikorpashvili5572 2 роки тому

    its not array, its slice... wtf

  • @elderofzion
    @elderofzion 3 роки тому

    testing sucks!

  • @andrewt.5213
    @andrewt.5213 6 років тому +3

    Great tutorial, but for God's sake, don't pronounce FILE as FAIL. See the transcription for FILE - fīl. You pronounce it as fāl, which is FAIL.

    • @levelont5560
      @levelont5560 6 років тому +24

      The tolerance and understanding for accents across the globe are strong in this one!

    • @andrewt.5213
      @andrewt.5213 6 років тому +2

      I'm tolerant of accents across the globe, but I'm intolerant of incorrect pronunciation of basic words.

    • @magnusmarkling
      @magnusmarkling 5 років тому +1

      @@andrewt.5213 I think it's called Scotish English actually.