0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Anki-Android/tests
Houssam Salem d65b6c21ab Don't scan media on every sync and expose media checking to UI
The media checking functionality has been completed and exposed to the user in the UI. 

With this commit, AnkiDroid will no longer scan (or even attempt to scan) for media changes on every sync. Changes made to media through AnkiDroid are recorded in the media database directly. If the media directory is modified externally (e.g., with a file manager),  the user must use the media checking feature to update the media database by scanning all files again.

Other changes:
 - Adding media files through imported decks also mark file additions in the media db
 - The multimedia note editor now uses the media manager to add files instead of copying files directly (which marks additions in the media db)
 - Fixed issue where non-temporary media wasn't copied over in multimedia note

Includes commits:
display more feedback when syncing media (cf801e4fb4)
we need to count up for downloads (3ee1937310)
2014-09-15 01:03:36 +10:00
..
res Remove Unescaper class. 2013-06-20 08:11:32 +01:00
src/com/ichi2/utils Don't scan media on every sync and expose media checking to UI 2014-09-15 01:03:36 +10:00
.classpath fix whiteboard state not loading 2014-04-13 02:10:20 +09:00
.project Remove Unescaper class. 2013-06-20 08:11:32 +01:00
AndroidManifest.xml Remove Unescaper class. 2013-06-20 08:11:32 +01:00
ant.properties Remove Unescaper class. 2013-06-20 08:11:32 +01:00
proguard-project.txt Remove Unescaper class. 2013-06-20 08:11:32 +01:00
project.properties Update build files creation script. 2014-04-04 23:06:14 -05:00
README Remove Unescaper class. 2013-06-20 08:11:32 +01:00

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.