keepass2android/src/monodroid-unittesting/MonoDroidUnitTesting
Philipp Crocoll f8835b0f66 updated translations
added Oktoberfest dates for next years
2015-08-25 21:17:07 +02:00
..
API Splitted keepass2android project into 2013-06-14 06:14:50 +02:00
Frontends Introduced IDatabaseLoader 2014-01-25 19:38:12 -08:00
Properties Splitted keepass2android project into 2013-06-14 06:14:50 +02:00
Resources/Drawable Splitted keepass2android project into 2013-06-14 06:14:50 +02:00
Runner Splitted keepass2android project into 2013-06-14 06:14:50 +02:00
Utils Splitted keepass2android project into 2013-06-14 06:14:50 +02:00
LICENSE.lgplv3.txt Splitted keepass2android project into 2013-06-14 06:14:50 +02:00
MonoDroidUnitTesting.csproj updated translations 2015-08-25 21:17:07 +02:00
README.txt Splitted keepass2android project into 2013-06-14 06:14:50 +02:00

README.txt

To use this library, create a new Mono for Android Application project, reference this library and then change the code
of the new main activity to something like this:

  [Activity(Label = "MonoDroidUnit", MainLauncher = true, Icon = "@drawable/icon")]
  public class Activity1 : GuiTestRunnerActivity {
    protected override TestRunner CreateTestRunner() {
      TestRunner runner = new TestRunner();
      // Run all tests from this assembly
      runner.AddTests(Assembly.GetExecutingAssembly());
      return runner;
    }
  }

You need to inherit from "GuiTestRunnerActivity" and implement the method "CreateTestRunner()".


IMPORTANT: Mono for Android (at least in version 4.2.3) doesn't provide any file names and line numbers in stack traces
  when running without a debugger attached. If you need line numbers in your stack traces, make sure you run your
  unit test with debugger attached.