Skip to content

Commit 934e0e7

Browse files
committed
Merge pull request #228 from martiner/liry-trivials
Add How-to run acceptance tests to CONTRIBUTING.md
2 parents e13c7d5 + 737d77d commit 934e0e7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,16 @@ is specific enough.
5858
* When you need some **utility code**, look for handy utilities in used libraries first (e.g. _Spring_ has
5959
its `StreamUtils`, `FileCopyUtils`, ...). When you decide to create new utility class,
6060
use _abstract utility class pattern_.
61+
62+
## How-tos
63+
### Run acceptance tests
64+
These tests have to be run against GoodData API, so one has to first set endpoint and credentials. It's being set by
65+
environment variables: `host`, `login`, `pass`, `projectToken`, `warehouseToken`. Tests can be then run by:
66+
`mvn verify -Pat`.
67+
68+
One can also use one-liner like this:
69+
`host=... login=... pass=... projectToken=... warehouseToken=... mvn verify -Pat`
70+
71+
One can also run only subset by specifying tests or groups to be run:
72+
`mvn -Dgroups=featureFlag,project,account verify -Pat` or
73+
`mvn -Dit.test=FeatureFlagServiceAT,ProjectServiceAT,AccountServiceAT verify -Pat`.

0 commit comments

Comments
 (0)