Natural Strategy Setup
Web configuration of investment strategy for RoboZonky.
Run in development mode
Install elm-live and run
This starts a development server which opens the running app in the browser and live-reloads it on any change to elm files.
There is elm-test based suite of unit tests in
which can be run from the root of the project using
There is a Java maven based suite of selenium integration tests in
This one requires
robozonky-strategy-natural jar of corresponding version (see integration-tests/pom.xml) to be installed in local m2 repo:
git clone firstname.lastname@example.org:RoboZonky/robozonky.git cd RoboZonky mvn clean install -DskipTests -Dgpg.skip=true
You also need
warp (web server) binary which is used to serve the app for selenium tests.
stack install wai-app-static --resolver lts-17.14
After you have
warp binaries installed and robozonky artifacts built in your m2 repo you can run all tests using:
Release new strategy version
Whenever there are backwards incompatible changes to the strategy format, the commit before them needs to be tagged and testing app built from the repo based on that tag should be uploaded to nss-strategy-compat for future backward compatibility testing:
NEW_VERSION=v0.6 git tag -a $NEW_VERSION -m"DESCRIBE CHANGES" # After running tests mkdir ~/Devel/github.com/jhrcek/jhrcek.github.io/nss-strategy-compat/$NEW_VERSION mv integration-tests/target/testApp.html ~/Devel/github.com/jhrcek/jhrcek.github.io/nss-strategy-compat/$NEW_VERSION/index.html # Add links to jhrcek.github.io/nss-strategy-compat/README.md