|
2 | 2 | <img src ="./art/material-stepper-logo.png" width="256" height="256"/> |
3 | 3 | </p> |
4 | 4 |
|
5 | | -# Android Material Stepper [](https://circleci.com/gh/stepstone-tech/android-material-stepper) [](https://android-arsenal.com/details/1/5138) [](http://androidweekly.net/issues/issue-243) |
| 5 | +# Android Material Stepper [](https://circleci.com/gh/stepstone-tech/android-material-stepper) [](https://codecov.io/gh/stepstone-tech/android-material-stepper) [](https://android-arsenal.com/details/1/5138) [](http://androidweekly.net/issues/issue-243) |
6 | 6 |
|
7 | 7 | This library allows to use Material steppers inside Android applications. |
8 | 8 |
|
@@ -33,6 +33,8 @@ Moreover, you can find there other examples, e.g. how to persist state on rotati |
33 | 33 | - [View attributes](#view-attributes) |
34 | 34 | - [StepperLayout style attributes](#stepperlayout-style-attributes) |
35 | 35 | - [Changelog](#changelog) |
| 36 | +- [Espresso tests](#espresso-tests) |
| 37 | +- [Contributing](#contributing) |
36 | 38 | - [License](#license) |
37 | 39 |
|
38 | 40 | ## Supported steppers |
@@ -64,10 +66,10 @@ Moreover, you can find there other examples, e.g. how to persist state on rotati |
64 | 66 |
|
65 | 67 | ### Download (from JCenter) |
66 | 68 | ```groovy |
67 | | -compile 'com.stepstone.stepper:material-stepper:4.1.0' |
| 69 | +compile 'com.stepstone.stepper:material-stepper:4.2.0' |
68 | 70 | ``` |
69 | 71 |
|
70 | | -*Note:* This adds a transitive dependency to AppCompat `25.4.0` |
| 72 | +*Note:* This library adds a transitive dependency to AppCompat `25.4.0` |
71 | 73 | which is the minimum Android Support library version compatible with the Stepper library. |
72 | 74 |
|
73 | 75 | ### Create layout in XML |
@@ -526,6 +528,36 @@ A list of `ms_stepperLayoutTheme` attributes responsible for styling of StepperL |
526 | 528 | ## Changelog |
527 | 529 | See [changelog](CHANGELOG.md) |
528 | 530 |
|
| 531 | +## Espresso tests |
| 532 | +If you wish to run Espresso tests on a screen containing a `StepperLayout` you might want to use |
| 533 | +`espresso-material-stepper` which contains useful Espresso actions and matchers such as clicking on |
| 534 | +navigation buttons & tabs. |
| 535 | +To do so add a Gradle dependency: |
| 536 | + |
| 537 | +```groovy |
| 538 | + androidTestCompile 'com.stepstone.stepper:espresso-material-stepper:X.X.X' |
| 539 | +``` |
| 540 | + |
| 541 | +Please see the sample app which uses it in instrumentation tests for more details. |
| 542 | + |
| 543 | +## Contributing |
| 544 | +All contributions are welcome and encouraged! |
| 545 | + |
| 546 | +If you wish to contribute please create an issue first explaining the proposed changes. |
| 547 | + |
| 548 | +Project is built on Circle CI on which we run static code analysis as well as unit & instrumentation tests |
| 549 | +to ensure that the latest changes don't break anything. |
| 550 | +To check if your changes pass execute: |
| 551 | +
|
| 552 | +``` |
| 553 | +./gradlew checkWithUiTests |
| 554 | +``` |
| 555 | +
|
| 556 | +Or on a device below Marshmallow: |
| 557 | +``` |
| 558 | +./gradlew checkWithUiTests -Ptest.integration.options.adbInstallOptions=-r |
| 559 | +``` |
| 560 | +
|
529 | 561 | ## License |
530 | 562 | Copyright 2016 StepStone Services |
531 | 563 | |
|
0 commit comments