Skip to content

Add test support for CI #16

Description

@FriedrichFroebel

There currently are no automated tests on Travis CI. While I would be able to enable these for commits to the master branch, they would not work for pull requests as I would have to expose an Opencaching.de password to the public due to Travis not allowing access to secret variables on external contributions (which perfectly makes sense to avoid exposing it due to malicious contributors).

We might avoid this by mocking network calls. There would be the option to set-up an own site with the Opencaching.de server code to use for each test, but the tests would take a lot of time afterwards. Using the real site for each commit on the master branch and for pull requests might introduce additional traffic which I am not sure either.

Additionally all tests requiring write access (or existing logs) at Opencaching.de have currently been disabled. This is the case as I do not want to do development tests on the production server. We might come up with a appropriate solution for this in the same step (or in another one). (There is a public test server, but it currently is in maintenance mode and OKAPI e-mails are not sent for now.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions