Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 5, 2024
1 parent 7c358a3 commit e4df133
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,42 @@ In detail the list is the following:
| From | TO |
|---|---|
| - (space) # \ | _ |
| .)(,& | empty_string |
| .)(,& | empty_string |


## Run tests

A simple docker compose is provided along with the project. To run the geonode-importer test suite please follow this steps:

The compose project, provides what is needed to run the tests. This includes:

1) Database
1) Geoserver
1) Django with all the dependecies needed


#### Step 1: build the project

Build and run the docker compose project
```
docker compose -f docker-compose-test.yaml up --build -d
```

#### Step 2: Run Scripts

Two scripts are provided along with the compose file:

1) entrypoint_test.sh
1) runtest.sh

#### 1) entrypoint_test.sh
Is a script which create the needed extension and database to run the tests. Is a setup script

#### 2) runtest.sh
It actually runs the tests.


Note: the tests inside the docker environment can be run manually too

## Env File
The `.env_test` file contains all the environment variable needed to successfully run the tests

0 comments on commit e4df133

Please sign in to comment.