Skip to content
GoCD Functional tests in ruby - using capybara, webdriver and Gauge
Ruby Shell Other
Branch: master
Clone or download
rajiesh Merge pull request #491 from rajiesh/master
Update expected response code
Latest commit 81d799b Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bundle Config repo plugin spec (#19) Jan 9, 2017
config-files Fixup some more logging Aug 10, 2018
env/default
lib Fix for a flaky test Aug 19, 2019
resources Bump schema version Aug 16, 2019
screenshots Add folder screenshots Jan 10, 2019
specs Fix for test falkyness Aug 9, 2019
step_implementations Update expected response code Aug 19, 2019
test-repos/svn_repos/end2end Adding support for SVN repo as material in tests (#214) Nov 2, 2018
tools Fix the environments edit page broken when made some changes for in h… Apr 28, 2018
.gitignore Run on gcp (#452) May 30, 2019
Gemfile Update ffi requirement from < 1.10.1 to < 1.11.2 Jun 28, 2019
Gemfile.lock [Security] Bump nokogiri from 1.10.3 to 1.10.4 Aug 12, 2019
LICENSE Create LICENSE Apr 5, 2017
README.md Elastic Profiles spec. Apr 30, 2019
Rakefile Merge pull request #415 from dhanasp/secret-config-spa Jun 6, 2019
data.ldif Access token specs (#346) Mar 13, 2019
manifest.json Initial code Aug 29, 2016

README.md

Gauge Badge

Pre-Requisites(with versions tested on)

  • Java 8
  • Ruby >= 2.3.3
  • Rake 12.0.0
  • Bundler 1.14.6
  • Node v6.10.1
  • Gauge 0.9.6
  • Gauge-ruby plugin 0.4.2
  • Firefox >= 45.0
  • geckodriver 0.19.1
  • jq

Setup

  • git clone as a sibling directory to go.cd and go-plugins
  • $ cd ruby-functional-tests
  • $ gauge --install-all

Prepare and run specs

  • Build GoCD server and agent zip installers - cd to gocd and run: ./gradlew clean installers:agentGenericZip installers:serverGenericZip test:test-addon:assemble
  • Build GoCD plugins api - cd to gocd and run : ./gradlew -PfastBuild --parallel --max-workers 2 plugin-infra:go-plugin-api:install plugin-infra:go-plugin-api-internal:install installers:versionFile
  • Build go plugins - cd to go-plugins and run: ./gradlew clean assemble copyJarsToOnePlace -PgoVersion=$(jq '.go_full_version' -r ../gocd/installers/target/distributions/meta/version.json)
  • cd to ruby-functional-tests and run : $ bundle install --path=vendor/bundle
  • To clean, prepare server and agent for functional test execute this command bundle exec rake GO_VERSION='X.x.x' clean_test server:prepare agent:prepare
  • To run all specs execute this command bundle exec rake GO_VERSION='X.x.x' GAUGE_TAGS='<spec tags to run>' test
  • To run specific task(s), execute this command bundle exec rake [kill/clean/prepare/test/bump-schema] GO_VERSION='X.x.x' GAUGE_TAGS='<spec tags to run>'
    • kill - Kills all running processes spun by the tests.
    • clean_test - Cleans all directories (ruby-functional-tests/target, ruby-functional-tests/reports).
    • prepare - Initializes the filesystem to run tests.
    • test - Runs the gauge tests with specified tags.
    • bump-schema - Bump up schema version. Example: VERSION=99 rake bump-schema

License

Copyright 2018 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.
You can’t perform that action at this time.