How to use Unit tests written under UnitTests directory
Sahas-Shah opened this issue · comments
Hi,
We use Readium-sdk for our app.
readium-sdk provides a UnitTests folders that have test cases written.
I tried to build the main.cpp but it gives me linking error as it is not able to find the files from cloudshelf-reader-sdk\android-cloudshelf-reader-sdk\readium-sdk\ePub3.
To be more clear and specific, In the main.cpp file under UnitTests, it includes following files,
#include "../ePub3/ePub/initialization.h"
#include "../ePub3/ePub/archive.h"
#include "../ePub3/xml/utilities/io.h"
#include "../ePub3/ePub/filter_manager_impl.h"
further, initialization.h includes epub3.h file which is not accessible to initialization.h and there I am facing linking issues.
While getting epub3.h it has having issue.
I tried many ways but no success.
Can you please help to enable the Unit Testing or please provide steps to build the exe from the main.cpp in UnitTest?
This issue is a Question
How to do Unit test using Catch2 that ReadiumSDK have already in UnitTests folders?
Related issue(s) and/or pull request(s)
Expected behaviour
Observed behaviour
Steps to reproduce
Test file(s)
Product
- Native application (Readium SDK C++)
Hello, you mention the Cloudshelf Reader SDK. Is that a fork of this readium-sdk
project, or a superset / wrapper that integrates a specific revision of this Git repository? Is this based on an unmodified readium-sdk
source tree, or are there code changes?