Skip to content

Commit

Permalink
Merge pull request #669 from kobotoolbox/Update-README.md-to-include-…
Browse files Browse the repository at this point in the history
…testing-steps

Update README.md
  • Loading branch information
noliveleger authored Feb 18, 2021
2 parents e9c3c6a + 4d50438 commit d787948
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,33 @@ To compile MO files and update live translations
$ django-admin.py compilemessages ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py compilemessages && cd - ; done
```
## Testing in KoBoCAT

For kobo-install users, enter the folder for kobo-install and run this command

```
./run.py -cf exec kobocat bash
```

For all other users, enter the container using this command

``` sh
$ docker exec -it {{kobocat container}} /bin/bash
```

Run pip install the development dependancies

``` sh
$ pip install -r requirements/dev.pip
```
Install libsqlite3-mod-spatialite for the testing database

``` sh
$ apt-get update && apt-get install libsqlite3-mod-spatialite
```

Run pytest to run all automated tests

``` sh
$ pytest
```

0 comments on commit d787948

Please sign in to comment.