Skip to content

Commit

Permalink
Update readme 2 (#302)
Browse files Browse the repository at this point in the history
Allure and Robolectric info at Reame
  • Loading branch information
matzuk authored Oct 18, 2021
1 parent c2bb4b6 commit b270105
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ With Kaspresso, some UI Automator commands run **10 times faster**!
* Ability to call ADB commands.
* UI tests writing philosophy, implemented with DSL.
* Features screenshotting.
* Robolectric support.
* Allure support.

And many more!

Expand Down Expand Up @@ -204,6 +206,17 @@ With Kaspresso, translators can automatically take a screenshot of any screen. I

You can tune any part of Kaspresso (read [more](/wiki/03_Kaspresso_configurator.md))

### Robolectric support

You can run your UI-tests on the JVM environment. Additionally, almost all interceptors improving stability, readability and other will work.
Read [more](/wiki/08_Kaspresso-Robolectric.md).

### Allure support

Kaspresso can generate very detailed Allure-reports for each test:
![](https://habrastorage.org/webt/tq/t7/ch/tqt7chcdczrgduhoukqhx1ertfc.png)
More information is available [here](/wiki/09_Kaspresso-Allure.md).

## Philosophy

The tool itself, even the perfect one, can not solve all the problems in writing UI tests. It’s important to know how to write tests and how to organize the entire process. Our team has great experience in introducing autotests in different companies. We shared our knowledge on [writing autotests](/wiki/04_How_to_write_autotests.md).
Expand Down
21 changes: 18 additions & 3 deletions wiki/09_Kaspresso-Allure.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@ Also, the following interceptors were added:
In the package [**com.kaspersky.components.alluresupport.interceptors**](../allure-support/src/main/kotlin/com/kaspersky/components/alluresupport/interceptors), there are special Kaspresso interceptors helping to link and process files for Allure-report.

## _How to use_
First of all, add the following Gradle dependency to include **allure-support** Kaspresso module:
```
androidTestImplementation "com.kaspersky.android-components:allure-support:1.3.0"
First of all, add the following Gradle dependency and Allure runner to your project's gradle file to include **allure-support** Kaspresso module:
```groovy
android {
defaultConfig {
//...
testInstrumentationRunner "io.qameta.allure.android.runners.AllureAndroidJUnitRunner"
}
//...
}
dependencies {
//...
androidTestImplementation "com.kaspersky.android-components:kaspresso-allure-support:1.3.0"
}
```
Next, use special [**withAllureSupport**](../allure-support/src/main/kotlin/com/kaspersky/components/alluresupport/AllureSupportKaspressoBuilder.kt) function in your TestCase constructor or in your TestCaseRule to turn on all available Allure-supporting interceptors:
```kotlin
Expand Down Expand Up @@ -119,3 +130,7 @@ Details for succeeded test:
Details for failed test:
![](https://habrastorage.org/webt/z_/ml/bj/z_mlbjspdd8uvkw4t3cafh6-g6k.png)
## _Details that you need to know_
By default, Kaspresso-Allure introduces additional timeouts to assure the correctness of a Video recording as much as possible. To summarize, these timeouts increase a test execution time by 5 seconds.
You are free to change these values by customizing `videoParams` in `Kaspresso.Builder`. See the example above.

0 comments on commit b270105

Please sign in to comment.