Skip to content

ngds/ckanext-ogcpreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckanext-ogcpreview

Run Tests

Step 1

Before running tests, there are 2 configs files for test, need to be configured regarding the test environment of your machine:

  • ckanext-ogcpreview/test.ini: overrides ckan environment.ini variables or you can point it into a different environment.ini
  • ckanext-ogcpreview/ckanext/ogcpreview/tests/tests_config.cfg: ckan_web_map_service_url: by default it's webMapService (WmsServer service).

Step 2

Command line to perform the tests:

$ cd ckanext-ogcpreview/ckanext/ogcpreview
$ nosetests --ckan --with-pylons=../../test.ini tests/
  • --with-pylons it's an option to specify the path to environment.ini to use for the test (override ckan default ini).
  • tests/ it's the path to all tests files where located

Debugging

Every time you pull new changes into your existing repository, you should restart services to make sure all the files are compiled. You can use the following command for this:

$ supervisorctl restart all

If you run into issues while pulling new changes into your existing repository, you should run setup.py which will set up the environment correctly. See below:

$ python setup.py egg_info

Also, if you run into issues with the website being inaccessible, you can restart the http service by using the following command:

$ service httpd restart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published