Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Unit tests written under UnitTests directory #323

Open
Sahas-Shah opened this issue Feb 3, 2021 · 1 comment
Open

How to use Unit tests written under UnitTests directory #323

Sahas-Shah opened this issue Feb 3, 2021 · 1 comment

Comments

@Sahas-Shah
Copy link

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++)
@danielweck
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants