Reputation: 287
I'm running unit tests with ktor testing engine and everything is perfect locally. However, once I deploy on Travis, tests are failing and it seems the test engine is not running properly:
https://travis-ci.org/vpasquier/sprint-review/builds/406708799 (see down the logs).
There is not enough info in trace mode unfortunately. (<logger name="io.ktor.server.testing" level="TRACE"/>
)
Do you know how we can activate more logs for investigating? Or if you have any other idea to fix it?
If you tell me that Travis is not out dated, not recommended, I can switch too.
Thank you
Upvotes: 0
Views: 812
Reputation: 3105
I think the problem is that your travis build is missing the static files.
Your deployWeb
task does not seem to be executed as you only run ./gradlew test --info || travis_terminate 1
.
Therefore, the resource doesn't exist and will result in an unhandled route.
It works when I add static/index.html
to the resources.
Upvotes: 1