Skip to content

ClassNotFoundException: cucumber.android.CucumberInstrumentationTestRunner runnig the tests #1

@robsonrf

Description

@robsonrf

Hi cucumber-android team,

I followed the steps outlined in the readme .. but I could not run the tests .. the error is occurring:
java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo {com.example.calculator / cucumber.android.CucumberInstrumentationTestRunner}: java.lang.ClassNotFoundException: cucumber.android.CucumberInstrumentationTestRunner

I created an android project and added the android-cucumber jar generated from this project to the classpath of my android project..

see my project configuration in attached image..

** cucumber_apptest is my android project.
cucumber-project-config

Another question is about the cucumber-jvm, needs to configure something?
To run the tests simply create a run configuration as Android JUnit Test? .. See the image of the test run configuration attached ..
cucumber-run-config

** If possible, could you guys provide a simple example application with the correct configuration running .. :)

Appreciate your help,
best regards
Robson R. Ferreira

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions