-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from partio-scout/run-locally
Devausympäristö ja testit
- Loading branch information
Showing
8 changed files
with
81 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ src | |
env* | ||
*.orig | ||
*.rej | ||
web/settings/local.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,45 @@ | ||
Kipa | ||
==== | ||
# Kipa | ||
|
||
Kipa-ohjelmisto, jota käytetään partiotaitokilpailujen tuloslaskentaan. | ||
|
||
Asennusohjeet löytyvät [wikistä](https://github.com/partio-scout/kipa/wiki). | ||
|
||
Lisenssi | ||
======== | ||
## Lisenssi | ||
|
||
Tämä ohjelma on vapaa; tätä ohjelmaa on sallittu levittää edelleen ja muuttaa GNU yleisen lisenssin (GPL-lisenssin) ehtojen mukaan sellaisina kuin Free Software Foundation on ne julkaissut Lisenssin version 3 mukaisesti. | ||
|
||
Tätä ohjelmaa levitetään siinä toivossa, että se olisi hyödyllinen, mutta ilman mitään takuuta; ilman edes hiljaista takuuta kaupallisesti hyväksyttävästä laadusta tai soveltuvuudesta tiettyyn tarkoitukseen. Katso GPL-lisenssistä lisää yksityiskohtia. | ||
|
||
Tämän ohjelman mukana pitäisi tulla kopio GPL-lisenssistä; jos näin ei ole, kirjoita osoitteeseen Free Software Foundation Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
|
||
|
||
## Kehittäminen | ||
|
||
### Paikallisen kehitysympäristön pystytys | ||
|
||
* Asenna Python2 | ||
* Varmista, että sopiva pip on asennettuna: `python2 -m ensurepip [--user] --upgrade` | ||
* `virtualenv -p /path/to/python2 kipa-venv` | ||
* `source ./kipa-venv/bin/activate` | ||
* `pip install -r requirements.txt` | ||
* `cp ./web/settings/local.py.example ./web/settings/local.py`, muokkaa sopiva polku tietokantatiedostolle | ||
* `cd web` | ||
* `python manage.py runserver` käynnistää kehityspalvelimen | ||
|
||
### Yksikkötestien ajaminen | ||
|
||
* tarvittaessa `source ./kipa-venv/bin/activate` | ||
* `cd web` | ||
* `python manage.py test` | ||
|
||
### E2E-testien ajaminen | ||
|
||
* Käynnistä Kipan kehityspalvelin | ||
* `python3 -m venv ./robot-venv` | ||
* `source ./robot-venv/bin/activate` | ||
* `pip install robotframework robotframework-seleniumlibrary` | ||
* `robot --outputdir /tmp/test-report --variable BROWSER:headlessfirefox --exitonfailure ./web/robot/perustoiminnot.robot` | ||
|
||
Hakemistosta `./web/roobt` löytyy myös toinen robot-tiedosto nimeltään | ||
`autentikointi.txt`, mutta sen ajaminen ei taida onnistua, ellei ensin toteuta | ||
Kipaan suunniteltua kirjautumista. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters