Quickstart: running integration tests locally on Mac/Docker
Arguments: (arguments are positional)
- branch of firecloud-automated-testing
- Configs branch; defaults to
master
- Configs branch; defaults to
- Vault auth token
- Defaults to reading it from the .vault-token via
$(cat ~/.vault-token).
- Defaults to reading it from the .vault-token via
- env
- Environment of your BEE; defaults to
dev
- Environment of your BEE; defaults to
- service root
- the name of your local clone of leonardo if not
leonardo
- the name of your local clone of leonardo if not
sbt -Djsse.enableSNIExtension=false -Dheadless=false "project automation" test
IntelliJ
- Edit Configurations -> Defaults -> ScalaTest
- set VM parameters
-Djsse.enableSNIExtension=false -Dheadless=false - set Working dir to local dir
- use classpath and SDK of the leonardoTests (automation) module
- IntelliJ -> Preferences -> Build, Execution, Deployment -> Build Tools -> sbt: Check the two boxes next to
Use sbt shell - should be able to right-click-run on the particular test
- If you get an error like
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 75, download the chrome driver fromhttps://sites.google.com/a/chromium.org/chromedriver/downloadsthat has the same version of your local chrome. UpdatechromeSettings.chromedriverPathinapplication.confto the new chrome driver that you just downloaded
Note: If the test you're trying to run is annotated with @DoNotDiscover, do the following for running the individual test
- Comment out
@DoNotDiscoverof the test you are running - Have
SpecextendNewBillingProjectAndWorkspaceBeforeAndAfterAlldirectly or indirectly:- If the
SpecextendsClusterFixtureSpec/RuntimeFixtureSpec, addwith NewBillingProjectAndWorkspaceBeforeAndAfterAlltoClusterFixtureSpec/RuntimeFixtureSpec. - If not, add
with NewBillingProjectAndWorkspaceBeforeAndAfterAllto theSpecdirectly.
- If the