CppCon 2018: Phil Nash “Modern C++ Testing with Catch2”

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 16

  • @loomismeister
    @loomismeister 6 ปีที่แล้ว +11

    Nice! Catch is such an easy to use test framework.

  • @broken_abi6973
    @broken_abi6973 6 ปีที่แล้ว +60

    When he opens CLion, his machine enters rocket launching mode. Fortunately, he had enough memory

    • @Gollum999
      @Gollum999 6 ปีที่แล้ว +5

      "What's that sound, is someone vacuuming? Oh, it's just his laptop."

    • @17plus9
      @17plus9 6 ปีที่แล้ว +3

      Oh yeah, that poor MacBook is sweating.

    • @JohnWilliams-gy5yc
      @JohnWilliams-gy5yc 3 ปีที่แล้ว +2

      Fan noise: Exists.
      Two years later.
      Apple ARM: You're already dead, you know?
      Fan noise: ...
      Finally I become nostalgia gimmick after all then.

    • @cnliving
      @cnliving 2 ปีที่แล้ว

      rocket launching mode? lol

    • @davidvileta4526
      @davidvileta4526 8 วันที่ผ่านมา

      more true now in the Nova era than when this comment first dropped

  • @FunkyBaby01
    @FunkyBaby01 5 ปีที่แล้ว +4

    Wrt final discussion about replacing macro's: please don't. The macro's, besides addressing the technical issues, make for a nice DSL.
    I use Catch/2 daily, thanks for making it!

  • @luncliff
    @luncliff 6 ปีที่แล้ว

    I've been using old Catch. This talk makes me to imagine more test codes.,..!

  • @dragdu
    @dragdu 6 ปีที่แล้ว +3

    So, uh, a correction: `random(-10000, 10000)` will generate 20k inputs, because what it actually does is to create the full range and then apply random permutation over it. In general, the current generators are not quite baked yet.

  • @StealerSlain
    @StealerSlain 4 ปีที่แล้ว

    Is there an elegant way to pack tests with catch2 in the same project where all my original source code is? So that in CLion I would just have multiple configurations like "Run tests" and "Run project" (debug/release). What is the proper way?

    • @not_ever
      @not_ever 4 ปีที่แล้ว +2

      This is covered in a tutorial on the jetbrains website: www.jetbrains.com/help/clion/unit-testing-tutorial.html

  • @yvanpearson7024
    @yvanpearson7024 3 ปีที่แล้ว

    What about mocking?