File tree Expand file tree Collapse file tree
catroid/src/androidTest/java/org/catrobat/catroid/catrobattestrunner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import org.junit.runners.Parameterized
4444import java.io.File
4545import java.io.IOException
4646import java.util.ArrayList
47+ import org.catrobat.catroid.test.utils.ParameterizedTestData
4748
4849@RunWith(Parameterized ::class )
4950class CatrobatTestRunner {
@@ -70,7 +71,11 @@ class CatrobatTestRunner {
7071 @JvmStatic
7172 @Parameterized.Parameters (name = " {0} - {1}" )
7273 @Throws(IOException ::class )
73- fun data (): Iterable <Array <Any >> = getCatrobatAssetsFromPath(TEST_ASSETS_ROOT )
74+ fun data (): Iterable <Array <Any >> = ParameterizedTestData .requireNonEmpty(
75+ getCatrobatAssetsFromPath(TEST_ASSETS_ROOT ),
76+ CatrobatTestRunner ::class .java,
77+ " Catrobat test assets from assets/catrobatTests"
78+ )
7479
7580 @Throws(IOException ::class )
7681 private fun getCatrobatAssetsFromPath (path : String ): List <Array <Any >> {
You can’t perform that action at this time.
0 commit comments