I'm using espresso lib for android instrumentation tests. I also need to run precondition before tests (create account on web server, maybe some other data in future.)
I realized, that instrumentation test code actually runs on phone's JVM. I cannot run preconditions from phone, because of I'm planning to use jar-bundled test custom test framework where that precondition already implemented.
I there a way to run preconditions on PC JVM in android instrumentation test?