mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 20:03:05 +02:00
49d6fd9734
The class had a dubious copyright and can be easily implemented using the Android APIs. This commit also adds a test project that I used to create a couple of simple unit tests for the newly added code. The project can be configured in Eclipse by importing the tests directory as a new project, as well as with ant, running "ant test". See the README in the tests directory for more details.
31 lines
811 B
Plaintext
31 lines
811 B
Plaintext
This directory contains tests and a test project for AnkiDroid.
|
|
|
|
You can import this project into Eclipse as you did for the main project. You
|
|
can also run the tests from the command line with:
|
|
|
|
ant clean debug test
|
|
|
|
Make sure you have installed a version of the application that you have build before running the test. You can do some from the command line with:
|
|
|
|
cd ..
|
|
ant clean debug install
|
|
cd tests
|
|
|
|
|
|
The output of the tests should look something like:
|
|
|
|
test:
|
|
[echo] Running tests ...
|
|
[exec]
|
|
[exec] com.ichi2.utils.HtmlUtilTest:......
|
|
[exec] Test results for InstrumentationTestRunner=......
|
|
[exec] Time: 0.058
|
|
[exec]
|
|
[exec] OK (6 tests)
|
|
[exec]
|
|
[exec]
|
|
|
|
assuming all the tests are passing.
|
|
|
|
The test classes and the number of tests is subject to change.
|