From b858e6fb5f220b97655fd23bc5f099c42ef4b159 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 Jul 2019 08:56:16 +0200 Subject: dashboard/app: add test instructions --- dashboard/app/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dashboard/app/README.md b/dashboard/app/README.md index b3e118b00..30a3c1e73 100644 --- a/dashboard/app/README.md +++ b/dashboard/app/README.md @@ -9,3 +9,15 @@ For more details about App Engine refer to the [docs](https://cloud.google.com/a and in particular [support package docs](https://cloud.google.com/appengine/docs/standard/go/reference). **Note**: The app is not stable and is not officially supported. It's here only to power the main deployment. + +To test the app one needs to install the SDK and add the `goapp` binary to `$PATH`, then run: +``` +goapp test -tags=aetest github.com/google/syzkaller/dashboard/app +``` +During development it's handy to use `-short` flag to not run the longest tests. + +If any of the tests fail, use `-v` flag to see log of what happens and `-run` flag +to run a single test, e.g.: +``` +goapp test -tags=aetest -short -v -run=TestEmailReport github.com/google/syzkaller/dashboard/app +``` -- cgit mrf-deployment