Comments (7)
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.
Your build.gradle looks strange, I've never had this androidTest section so probably it is wrong
from cucumber-android.
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.
from cucumber-android.
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.
Do I miss anything else?
from cucumber-android.
Do you have any example in your scenario outline? Where are steps implementations?
from cucumber-android.
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.
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)
- Crash when sending test failures to Runner for Recording HOT 2
- Main line and 4.9.0 do not build HOT 1
- cucumber integration reporting package HOT 2
- Execution failed for task ':cucumber-android:mergeDebugJavaResource'. HOT 3
- CucumberJUnitRunnerBuilder throws CucumberException when finishing report (Stream closed) HOT 1
- Running tests from feature files directly in android studio fails HOT 2
- Hilt gives me "Called inject() multiple times" exception HOT 11
- Cucumber with Hilt No tests found HOT 1
- Not able to use annotations to create type definitions HOT 1
- How to run gherkin scenarios for unit tests ? HOT 1
- How to run gherkin scenarios for unti tests ?
- Run tests in isolation without code changes HOT 5
- @WithJunitRule executes rule for every scenario HOT 11
- Execution failed for task ':app:connectedMyFlavorDebugAndroidTest'. HOT 2
- What version of picocontainer should be used along with v7.14.0? HOT 3
- Support for Loading .feature Files from Emulator Private Data Storage in cucumber-android HOT 3
- can't launch activity in cucumber @Before HOT 3
- ActivityScenario is null when executing the test HOT 8
- Can't generate report on Android API 34 HOT 4
- Compose rule not working on composables hosted in an activity HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-android.