#49 Embedded Unit Testing

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

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

  • @bhups200689
    @bhups200689 9 หลายเดือนก่อน +2

    i dont know whether it makes any sense or not but for any beginner your content is GOLD. Sometimes one can wonder that should i continue making this content when the views are limited and there is a looooot of effort goes into making even a single video. but trust me dear your work is a veryyyy big help and i can say for hundreds of others like me who feel the same way just not expressing enough.

  • @IsaacC20
    @IsaacC20 11 หลายเดือนก่อน +4

    I love this series so much. Have been tuning in since episode 1! It's so broad and comprehensive.

  • @Jonasmelonas
    @Jonasmelonas 7 หลายเดือนก่อน +1

    Still as a senior embedded software developer, your videos are amazing. Thank you.

  • @vadumsenkiv8773
    @vadumsenkiv8773 11 หลายเดือนก่อน +2

    Thank you. Looking forward for next series on UT!

  • @joshuadavid9424
    @joshuadavid9424 11 หลายเดือนก่อน +1

    ❤Excellent thought process, disruptive

  • @Lendlav
    @Lendlav 11 หลายเดือนก่อน +2

    Happy new year 🎉

  • @ANOCEANGROUND
    @ANOCEANGROUND 11 หลายเดือนก่อน +1

    Bunch of test frameworks to choose from
    Gtest, unity, cunit. Which one to choose from?
    Need to keep an eye on integration test as well.
    @samek please also schedule one series for python or perl script for automation.

    • @StateMachineCOM
      @StateMachineCOM  11 หลายเดือนก่อน +3

      Which testing framework? How about ET ( github.com/QuantumLeaps/Embedded-Test ). It is simple, but as capable as Unity. (Support for "mocking" in ET will be added in the future).
      Regarding using Python for testing, I've already made some videos: "Testing of Event-Driven Embedded Software with Python", Part-1 ( th-cam.com/video/dt7Vy02W5DU/w-d-xo.htmlsi=rbYd1OktGAJA6_Cy ) and Part-2 ( th-cam.com/video/1L4bAOZHdIc/w-d-xo.htmlsi=mhaj-jdUIYT4GKgZ ) --MMS

    • @JuPrgn
      @JuPrgn 11 หลายเดือนก่อน

      Ceedling is really great too and remove the need to add every tests manually (Ceedling use Unity and Cmock...) given the title I expected this video will speak or mention something about it 😅

    • @StateMachineCOM
      @StateMachineCOM  11 หลายเดือนก่อน +2

      @@JuPrgn I don't have a video about Ceedling yet, but I do about "mocking" with Unity and Cmock (see th-cam.com/video/dt7Vy02W5DU/w-d-xo.htmlsi=qCLxTn8V3EEbcIqk&t=578 ). But to inform viewers unfamiliar with Cmock and Ceedling, they are written in Ruby.

    • @JuPrgn
      @JuPrgn 11 หลายเดือนก่อน +2

      @@StateMachineCOM I love your video I am a bit late (did not watched all yet) cause I discovered your channel 3 months ago but you have great teaching skills and your content is really valuable !

  • @AkosLukacs42
    @AkosLukacs42 11 หลายเดือนก่อน +1

    3:30 gold!

  • @KiranNayakfastbitlab
    @KiranNayakfastbitlab 11 หลายเดือนก่อน +1

    Hello Miro, Great video . at 18:33 I was expecting it would report the test result to your QuTest tool. Does QuTest utility work with ET? Thank you

    • @StateMachineCOM
      @StateMachineCOM  11 หลายเดือนก่อน +1

      Thank you for bringing up QUTest. I didn't mention it in this introductory video about testing because QUTest is a bit more advanced and more innovative than the traditional approach based on the xUnit heritage. QUTest is also not related to ET, which is much more like the other traditional testing frameworks, so it should feel more familiar. The two testing approaches (QUTest based on software tracing) and ET (based on the traditional xUnit) are complementary and useful for different things. ET is good for testing low-level algorithms (e.g., the "ring-buffer" implementation mentioned in the video). QUTest is much better for testing interactions, such as those occurring in event-driven systems. --MMS

  • @nunustone7133
    @nunustone7133 11 หลายเดือนก่อน

    Happy new year, and thanks for the overview to the testing topic.
    What is your opinion to the fuzzing subject with tools like AFL++ in the embedded system section?

    • @StateMachineCOM
      @StateMachineCOM  11 หลายเดือนก่อน +1

      I'm not familiar with AFL++ and have never seen it used for embedded software. But anything that finds defects could be potentially valuable. It seems that AFL++ would require testing on the host, which confirms the usefulness of "dual-targeting". --MMS

  • @ashrafkamel1287
    @ashrafkamel1287 9 หลายเดือนก่อน

    Does ET have a code coverage output?

    • @StateMachineCOM
      @StateMachineCOM  9 หลายเดือนก่อน

      Code coverage can be recorded by adding the option --coverage to the gcc compiler (in the Makefile). This will generate coverage data in a file, which you can analyze with the utility called gcov. Please google for "gcov". All this will work on the *host* computer right away (that's why I always recommend the "dual targeting" technique.) Obtaining coverage in an embedded target is possible, but more involved and ET currently does not support it. --MMS