Stabilitron Kanifolev
2014-12-10 00:25:19 UTC
Hi everyone=)
I try to use Cucumber with Espresso. I use this InstrumentationTestRunner
public class EspressoInstrumentation extends GoogleInstrumentationTestRunner {
private CucumberInstrumentationHelper helper = new CucumberInstrumentationHelper(this);
@Override
public void onCreate(Bundle arguments) {
helper.onCreate(arguments);
super.onCreate(arguments);
}
@Override
public void onStart() {
helper.onStart();
}
}
and it works (i can run test from ide and see some result), but i can't get
reports.
I use that annotation for steps class
@CucumberOptions(format = {"pretty","html:/data/data/com.example.myapplication/report"},features = "features")public class CucumberActivitySteps extends ActivityInstrumentationTestCase2<MainActivity>
and expect to receive report with command
adb pull /data/data/com.example.myapplication cucumber-report-android
But there is no any files (I get response from console "0 files pulled. 0
files skipped.").
I should call some methods from runner on finish or something?
I use gradle.
I try to use Cucumber with Espresso. I use this InstrumentationTestRunner
public class EspressoInstrumentation extends GoogleInstrumentationTestRunner {
private CucumberInstrumentationHelper helper = new CucumberInstrumentationHelper(this);
@Override
public void onCreate(Bundle arguments) {
helper.onCreate(arguments);
super.onCreate(arguments);
}
@Override
public void onStart() {
helper.onStart();
}
}
and it works (i can run test from ide and see some result), but i can't get
reports.
I use that annotation for steps class
@CucumberOptions(format = {"pretty","html:/data/data/com.example.myapplication/report"},features = "features")public class CucumberActivitySteps extends ActivityInstrumentationTestCase2<MainActivity>
and expect to receive report with command
adb pull /data/data/com.example.myapplication cucumber-report-android
But there is no any files (I get response from console "0 files pulled. 0
files skipped.").
I should call some methods from runner on finish or something?
I use gradle.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.