TDD with Qt 6 – Episode 3: Test Fixtures & Data-Driven Tests (Qt Test Tutorial)
Автор: vrfEducationEnglish
Загружено: 2025-09-09
Просмотров: 107
Welcome to Episode 3 of our Test-Driven Development with Qt 6 series! 🚀
In this session, we’ll go deeper into Qt Test by exploring fixtures and data-driven tests to keep our tests clean, independent, and repeatable.
👉 What you’ll learn in this video:
✅ Using init() and cleanup() for setup and teardown
✅ Why test fixtures help keep code DRY and maintainable
✅ Writing data-driven tests with QTest::addColumn and QTest::newRow
✅ Testing multiple scenarios with minimal code duplication
✅ Ensuring tests are independent and repeatable
Practical demo: Testing Calculator::divide() with multiple inputs, including edge cases like division by zero
This will help you build robust tests for real-world applications while keeping your codebase easy to maintain.
🔔 Subscribe for upcoming episodes where we’ll continue building a real app with TDD!
*TAGS*
#unit_testing #software_development #test_driven_development #Qt_6 #Qt_Test #Qt_TDD #Test_Driven_Development #Qt_Unit_Testing #Qt_Data_Driven_Tests #QTest_addColumn #QTest_newRow #Qt_init_cleanup #Qt_test_fixtures #Qt_Cpp_tutorial #TDD_in_Cpp #Qt_6_tutorial #Automated_Testing_Qt #Calculator_test_Qt #QVERIFY #QCOMPARE #qTRY_VERIFY #QTRY_COMPARE #QTest_addColumn #QTest_newRow #QFETCH #Fixture #Data_Driven_Tests #QEXPECT_FAIL #QVERIFY_EXCEPTION_THROWN #QVERIFY_THROWS_EXCEPTION
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: