Tests are not running in IntrumentationTest Error : Tests Cancelled 0 passed

Open
#1,787 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java
Domain
mobile, testing

Research direction

Start by reproducing the default InstrumentationTest in the linked contentstack-android repository with the listed AndroidX Test dependencies, then inspect why the run is cancelled. Done means the test reports pass or failure status and displays an error message when it fails.

Written by the indexing model from the issue text.

Description

Tests are not running in IntrumentationTest
Trying to run default Instrumentation test generated by Android studio IDE itself.
Should run properly with pass/failure status, In case of failure the error message should be thrown
Tests Cancelled 0 passed as toast and nothing happens
AndroidX Test and Android OS Versions
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Link to a public git repo demonstrating the problem:

https://github.com/contentstack/contentstack-android/tree/feat/CS-37836-azure-eu-and-include-metadata

https://drive.google.com/file/d/1i8fJZ4xV1FACrzkn_7P_nXx4lpQyK4P3/view?usp=sharing

Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
1d 14h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/android-test

All issues in android/android-test

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.