Coder Social home page Coder Social logo

appcenter-test-espresso-extensions's Introduction

Espresso Extensions

This project provides extensions for producing test reports for Espresso tests in Visual Studio App Center and Xamarin Test Cloud.

Visit our docs for instructions on how to convert and run your existing Espresso test suite in Visual Studio App Center.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

appcenter-test-espresso-extensions's People

Contributors

alexeybudynkov avatar greysteil avatar jhutchings1 avatar john7doe avatar krukow avatar microsoft-github-policy-service[bot] avatar thewulf7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

appcenter-test-espresso-extensions's Issues

Still using legacy android.support libraries

This is still using legacy android.support libraries instead of using androidx libraries.

Why this matters - this is holding back projects that use this library from being able to disable Jetifier.

Scanning com.microsoft.appcenter:espresso-test-extension:1.4
 Absolute path: /Users/P2956789/.gradle/caches/modules-2/files-2.1/com.microsoft.appcenter/espresso-test-extension/1.4/d95d919a5195d439334f79834fc5c6bc1dada78a/espresso-test-extension-1.4.aar
 Graphs to this dependency:
 +---com.microsoft.appcenter:espresso-test-extension:1.4
 Issues found:
 * com/microsoft/appcenter/espresso/Factory.class -> android.support.test.InstrumentationRegistry

Please update and stop using legacy android.support libraries.

Unable to get ReportHelper in JUnit 5

We are running our Espresso tests with JUnit 5 to take advantage of new custom runner functionality, and we're trying to add the ReportHelper to our tests to prepare for the Testing Cloud. However, each time we run we get this error:

java.lang.RuntimeException: Unable to get test information. Make sure the test class includes a @Rule:
      @Rule
      public ReportHelper reportHelper = Factory.getReportHelper();

JUnit 5 deprecated the @Rule annotation in favor of @Extensions - but using

@Extensions
public ReportHelper reportHelper = Factory.getReportHelper();

gives us the same error as above.

Is there a plan to support JUnit 5 in the future? And is there something we can do in the meantime so we can still use the ReportHelper?

Support for AndroidX

Espresso now depend on AndroidX and all the documentation is also only about AndroidX libraries, test runner etc. Yet the AppCenter Espresso documentation mentions old test runner from support library.

When I have AndroidX-based tests, the run fails with:

java.lang.RuntimeException: Delegate runner 'androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner' for AndroidJUnit4 could not be loaded

Is AndroidX supported or is the support planned?

Migrate to Maven Central

As jcenter() is sunsetting do you have any plans to migrate to somewhere else, i.e. Maven Central?

Unable to find ReportHelper when using Espresso with Cucumber

Hi,
I'm trying to use Espresso together with Cucumber and then launch tests in App Center. I'm hitting this wall when running test:

java.lang.RuntimeException: Unable to get test information. Make sure the test class includes a @Rule:
@Rule
public ReportHelper reportHelper = Factory.getReportHelper();

I tried putting the reportHelper into step definition classes and test runner classes, but still the same problem. Any suggestions?

I'm using Kotlin and specifying report helper like this:

@Rule
@JvmField
val reportHelper: ReportHelper = Factory.getReportHelper()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.