readium-sdk icon indicating copy to clipboard operation
readium-sdk copied to clipboard

How to use Unit tests written under UnitTests directory

Open Sahas-Shah opened this issue 3 years ago • 1 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++)

Sahas-Shah avatar Feb 03 '21 11:02 Sahas-Shah

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?

danielweck avatar Feb 08 '21 19:02 danielweck