Skip to content

Commit

Permalink
Using latest version of the library
Browse files Browse the repository at this point in the history
  • Loading branch information
mtogneri committed Mar 2, 2017
1 parent 128579e commit 383915b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ dependencies
{
compile 'com.android.support:appcompat-v7:25.2.0'

androidTestCompile 'com.mauriciotogneri:greencoffee:2.0.1'
androidTestCompile 'com.mauriciotogneri:greencoffee:2.1.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.mauriciotogneri.greencoffee.GreenCoffeeConfig;
import com.mauriciotogneri.greencoffee.GreenCoffeeTest;
import com.mauriciotogneri.greencoffee.Scenario;
import com.mauriciotogneri.greencoffee.ScenarioConfig;
import com.mauriciotogneri.greencoffeeexample.activities.LoginActivity;
import com.mauriciotogneri.greencoffeeexample.test.steps.ContactListSteps;
Expand All @@ -17,14 +18,12 @@
import org.junit.runners.Parameterized.Parameters;

import java.io.IOException;
import java.util.Locale;

import static com.mauriciotogneri.greencoffeeexample.test.TestSuite.ENGLISH;
import static com.mauriciotogneri.greencoffeeexample.test.TestSuite.SPANISH;

// auto-generate the steps from gherkin
// close keyboard shortcut
// simplify signature: protected void start(GreenCoffeeSteps firstTarget, GreenCoffeeSteps... restTargets)
// flag to delete app data
// TODO: auto-generate the steps from gherkin
@RunWith(Parameterized.class)
public class LoginFeatureTest extends GreenCoffeeTest
{
Expand All @@ -49,4 +48,10 @@ public void test()
{
start(new LoginSteps(), new ContactListSteps(), new ScreenshotSteps());
}

@Override
protected void beforeScenarioStarts(Scenario scenario, Locale locale)
{
// do something
}
}

0 comments on commit 383915b

Please sign in to comment.