jabbink / PokemonGoBot

DEFUNCT - Bot that plays Pokemon Go
https://www.pogobot.club/
GNU General Public License v3.0
559 stars 232 forks source link

The results of the command './gradlew run' are as follows: "2 test completed, 2 failed" #1265

Closed kiaph closed 8 years ago

kiaph commented 8 years ago

Prerequisites (Remove this section if you want)

Make sure you...

Description: command "./gradlew build" failed.

:test

ink.abb.pogo.scraper.TestSettings > testDefaultSettings FAILED
    java.io.FileNotFoundException at TestSettings.kt:29

ink.abb.pogo.scraper.TestSettings > testTemplateKeys FAILED
    java.io.FileNotFoundException at TestSettings.kt:95

2 tests completed, 2 failed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/kiaph/Desktop/GitHub/PokemonGoBot/build/reports/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
`

[Short description of the issue observed. If this is feature request you can modify the template as required.]

Steps to reproduce:

  1. [Step 1] -> open terminal in folder
  2. [Step 2]

-> type in terminal "./gradlew build"

Expected behavior: [What should happen?]

build runs to completion

Actual behavior: [What actually happens]

build almost runs to completion

Stacktrace (If it's a crash):

This was not a crash, that I know of, simply failure to install, but in the case you need this information I have posted a pastebin. You can find it here

Version: I used the cloned repo "verified" commit hash -> 11019a9da771f13db1aa96ab9f13cee9beef0eb0 [The version of the bot you used; when self-compiled: :exclamation: 11019a9da771f13db1aa96ab9f13cee9beef0eb0 :exclamation:]

Operating System: Ubuntu 16.04.1 LTS

However I had a very simular issue on windows 10 prior to trying on ubuntu, I thought it was a java related issue at first so I rebooted to ubuntu where I know what I have installed, and could easily rule that possibility out.

Java version: kiaph@Kiaphpooter:~/Desktop/GitHub/PokemonGoBot$ java -version openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Leave this sentence in your issue as proof that you have read and used this template.

Thank you for the time and effort, I put a lot of detail into this, and I can add more just let me know what information your looking for. Honestly I couldn't find a topic that hit the nail on the head when it came to fixing my error, no one with similar threads gave enough detail for me to justify assuming they were having the same problem, so I hope with this you can also give others a solution who are searching for one.

kiaph commented 8 years ago

Close this thread! :D

The issue for the building was I had some differences in my template from attempting using gradlew run on accident the first time.

From here I will use his config settings creater and try it out.