Skip to content
A collection of tests that can be run on an emulator or device to verify SQLCipher for Android.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.idea Community build of 4.1.1 Mar 19, 2019
app
gradle/wrapper
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
run-testsuite.sh
settings.gradle

README.md

To run, clone this repo and make sure you have the Android Studio installed:

Creating A New Test

  1. Open this repository within Android Studio
  2. Add a new class within net.zetetic.tests package that extends SQLCipherTest:
package net.zetetic.tests;

import net.sqlcipher.database.SQLiteDatabase;

public class DemoTest extends SQLCipherTest {

  @Override
  public boolean execute(SQLiteDatabase database) {
    try {
      // Add your scenario here
      return true;
    }catch (Exception e){
      return false;
    }
  }

  @Override
  public String getName() {
    return "Demo Test";
  }
}
  1. Add DemoTest to the TestSuiteRunner:
tests.add(new DemoTest());
  1. Build and run the application on an Android device/emulator
You can’t perform that action at this time.