Update to test binaries in develop

LabKey Support Forum
Update to test binaries in develop Trey  2021-09-29 17:08
Status: Closed
 

We are making some updates to the LabKey 'testAutomation' repository. They may require some action for folks but, hopefully, shouldn't be too disruptive.

  1. We are removing test.properties from source control and replacing it with test.properties.template. The gradle plugin (or the test harness) will generate test.properties from the template if it is missing when running tests.
    This change is intended to clean up folks' changelists a bit, similar to when we made template files for numerous IntelliJ config files that are frequently edited by IntelliJ.
    Additionally, the template file has been reorganized and annotated to help folks to understand and use the various properties.

  2. We are removing the chromedriver and geckodriver binaries from source control. The versions that are checked in are quite old and it isn't great practice to commit binaries into source control anyway. Going forward, you will need to install them manually.

What do you need to do?

  1. Backup your test.properties file. Once the change is merged and you've synced, run './gradlew :server:testAutomation:initProperties' to generate a new test.properties from the template file. Then copy your properties to the generated file (or restore your backup, but it won't have all the nice new annotations).
  2. Install up-to-date versions of geckodriver/chromedriver. Add/update 'webdriver.gecko.driver'/'webdriver.chrome.driver' properties in 'test.properties' to point at the corresponding binary. (Note: You can also install them somewhere seen by your PATH and forgo the driver properties)

I expect to merge these changes on Friday to let folks prepare and to wait for a needed gradle plugin change.