GithubHelp home page GithubHelp logo

mtnorthcott / geonode-selenium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geonode/geonode-selenium

0.0 1.0 0.0 159 KB

End to end tests with Selenium

License: GNU General Public License v3.0

Shell 34.03% Python 56.57% Dockerfile 9.41%

geonode-selenium's Introduction

geonode-selenium

Testing GeoNode with Selenium.

Requirements

Mandatory:

Optional:

Setup

Dependencies

If using virtualenv:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

If using fades:

$ pip3 install --user fades

Selenium WebDriver (Gecko)

$ tag=v0.24.0
$ wget https://github.com/mozilla/geckodriver/releases/download/$tag/geckodriver-$tag-linux64.tar.gz -O- |
      tar zx -C $HOME/bin

Other releases are available from: https://github.com/mozilla/geckodriver/releases/latest

Data

$ wget https://download.osgeo.org/geotiff/samples/made_up/ntf_nord.tif -P data

Usage

If GeoNode is running:

$ ./test.sh

If GeoNode is not running (warning: it could delete existing Docker volumes created by SPCgeonode):

$ git clone https://github.com/GeoNode/geonode.git
$ ./test-docker.sh

Set GEONODE_REPOSITORY to specify a different path.

Find the commit that introduced a bug

$ git checkout -b new-test
$ # write a new test or extend an existing one
$ cd geonode/
$ export GEONODE_REPOSITORY=$(pwd)
$ git bisect start
$ git bisect bad
$ git bisect good $COMMIT
$ git bisect run ../test-docker.sh

geonode-selenium's People

Contributors

dependabot-preview[bot] avatar frafra avatar t-book avatar travislbrundage avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.