O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making the first usecase test pass

We have implemented the usecase CheckAvailableGroceries, together with the required entity and repository: GroceryItems and GroceryItemsRepoDummy. For the test_one_or_more_grocery_items_available() test to pass, we need to do one more thing: import the relevant .pri files in check_available_groceries.pro:

# check_available_groceries.pro...TARGET = tst_check_available_groceriesCONFIG   += consoleCONFIG   -= app_bundleTEMPLATE = appinclude(../../entities/entities.pri)include(../../repositories/repositories.pri)include(check_available_groceries.pri)...

And make sure that the relevant headers are imported into tst_check_available_groceries.cpp:

#include "../check_available_groceries.h"#include "../../entities/grocery_items.h" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required