GithubHelp home page GithubHelp logo

Comments (7)

lsuski avatar lsuski commented on September 14, 2024 1

It is strange because basically you overwrite default setup which for Android tests is src/androidTest/java and src/androidTest/assets. In my opinion in your configuration you don't setup assets dir but java resources dir which is different concept. That's why this file does not exists in runtime. You can debug if context.getAssets().open returns stream for this file

from cucumber-android.

lsuski avatar lsuski commented on September 14, 2024

Your build.gradle looks strange, I've never had this androidTest section so probably it is wrong

from cucumber-android.

dinhthaidaica avatar dinhthaidaica commented on September 14, 2024

Thank you for your comment, but I don't think it's strange or is a problem. I believe it is a very common setup for instrument test on Android. It runs well with only espresso (without cucumber)

Here is my full setup source set if you want to sneak peek.
image

from cucumber-android.

dinhthaidaica avatar dinhthaidaica commented on September 14, 2024

well, you were right. My bad with assets folder for androidTest.
I have updated assets folder to
assets.srcDirs = ['tests/instrumentationTest/assets']

then I got the error
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations) again.
image

Screen Shot 2019-11-25 at 12 43 37

Do I miss anything else?

from cucumber-android.

lsuski avatar lsuski commented on September 14, 2024

Do you have any example in your scenario outline? Where are steps implementations?

from cucumber-android.

dinhthaidaica avatar dinhthaidaica commented on September 14, 2024

image
Here is my folder construction. As my previous post said, I have no Example in my scenario outline,
I changed to scenario but couldn't fix it

from cucumber-android.

lsuski avatar lsuski commented on September 14, 2024

As this is not standard android project structure the issue is propably caused by it. It is not issue with cucumber-android as cukeulator works. You can debug cucumber runner and see what exactly ia missing

from cucumber-android.

Related Issues (20)

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.