/functional-tests

Smoke, acceptance and regression tests for GoCD

Primary LanguageJavaApache License 2.0Apache-2.0

Gauge Badge

Pre-Requisites

  • JDK 8 (verified on 1.8.0_121-b13)
  • Gradle (verified to work on 3.4)
  • Maven (verified to work on 3.3.9)
  • Node 6.x (7.x will not work)
  • Gauge 0.8.3
  • Mercurial
  • Git
  • Firefox <= 45.x (verified on 45.8.0esr; the version of webdriver used only supports up to 45)

Setup

  • Need the following repos cloned as sibling directories to this repo:
  • $ cd functional-tests
  • $ gauge --install-all
  • $ gauge --update-all (in case the plugins were already installed before the previous command, update them to the latest anyway)
  • If you are using nvm, verify that Node 6.x is activated
  • Modfiy the paths to firefox.exe or firefox-bin in src/test/java/twist.properties (for both the sahi.browserLocation and webdriver.firefox.bin properties) to reflect the paths on your machine

Prepare

# This will, among other things, build go.cd binaries to use in these tests. Get some coffee.
$ rake prepare

Running tests

$ GO_VERSION=X.x.x gauge specs/AdminTaskListing.spec

Contributing

We encourage you to contribute to Go. For information on contributing to this project, please see our contributor's guide. A lot of useful information like links to user documentation, design documentation, mailing lists etc. can be found in the resources section.

License

Copyright 2017 ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.