Reputation: 109
When i tried to upload my maven project getting an exception like
There was a problem processing your file. We could not find a *-tests.jar file in the root of your test package. Please unzip your test package, verify that at least one *-tests.jar file is in the root of your package, and try again.
But i have created my Clubcard-1.0-SNAPSHOT-tests.jar and which is stored under target folder.
Also tried locating the jar file under root folder but still getting same issue
Upvotes: 0
Views: 2357
Reputation: 400
You uploaded the wrong zip file. Did you just try to upload your MAVEN project?
No, it should be a zip file named zip-with-dependencies.zip
under target
folder of your maven project. For example, \Desktop\Appium-myApp\target\zip-with-dependencies.zip
.
If you didn't find your zip-with-dependencies.zip
, you have to package with maven command
cd
to your maven directory in Terminal or command promptmvn clean package –-DskipTests=true
to package into a *-tests.jar
and zip-with-dependencies.zip
Finally, upload this zip-with-dependencies.zip
to Amazon Device Farm.
Upvotes: 1
Reputation: 3595
Have you packaged your tests per the AWS Device Farm instructions for TestNG or for JUnit? Please make sure you run mvn clean package –-DskipTests=true
to construct the package that is uploaded.
Upvotes: 1