-
Notifications
You must be signed in to change notification settings - Fork 60
test: add native integration tests setup #754
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
base: main
Are you sure you want to change the base?
Conversation
|
#758 - This is to be done as a separate PR. |
|
This PR closes issue called: "Add CI tests", but there is no CI that runs tests. I guess such CI should be added in this PR. |
packages/react-native-executorch/common/rnexecutorch/models/ocr/utils/RecognizerUtils.cpp
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/BaseModelTest.cpp
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/BaseModelTests.h
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/BaseModelTests.h
Outdated
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/StyleTransferTest.cpp
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/utils/TestUtils.h
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/TextEmbeddingsTest.cpp
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/TextToImageTest.cpp
Outdated
Show resolved
Hide resolved
packages/react-native-executorch/common/rnexecutorch/tests/integration/VerticalOCRTest.cpp
Show resolved
Hide resolved
| ### Running tests | ||
| To run tests navigate to tests directory, namely: | ||
| * `cd packages/react-native-executorch/common/rnexecutorch/tests` | ||
| To run tests, you need to make sure your Android emulator is running. This is because we're cross-compiling the test executables for Android, so we can easily run the tests using prebuilt Android third-party libs. To run the tests, you need to run the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also add information about setting NDK. I have simulator running, but get error:
[ERROR] ANDROID_NDK is not set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thing, installing wget:
./run_tests.sh: line 123: wget: command not found
|
Also, when I run tests, in logs I got the following msg: Additional, what are the simulator and its parameters, because when I run the test suite I run out of memory on device 😅 : |
Description
Introduces a breaking change?
Type of change
Tested on
Testing instructions
Screenshots
Related issues
Checklist
Additional notes