Skip to content

Instantly share code, notes, and snippets.

View sriv's full-sized avatar

Srikanth sriv

  • ThoughtWorks
  • Earth
View GitHub Profile
@sriv
sriv / example.spec
Last active June 10, 2019 11:38
gauge js_simple sample
# Specification Heading
This is an executable specification file. This file follows markdown syntax.
Every heading in this file denotes a scenario. Every bulleted point denotes a step.
To execute this specification, run
gauge run specs
@sriv
sriv / Dockerfile
Created June 29, 2018 11:51
gocd agent windowsservercore
FROM microsoft/windowsservercore
ENV chocolateyUseWindowsCompression false
ENV GO_AGENT_PATH "c:/gocd-agent"
RUN powershell Set-ExecutionPolicy Bypass;
RUN powershell -Command iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'));
RUN powershell -C \
mkdir c:\\build; \
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
@sriv
sriv / keybase.md
Created April 2, 2018 08:24
keybase

Keybase proof

I hereby claim:

  • I am sriv on github.
  • I am sriv (https://keybase.io/sriv) on keybase.
  • I have a public key ASCMHWPwI_tQOxBuLTkBWOEQxvlVobQtGtmr30ZR8ltahgo

To claim this, I am signing this object:

To execute this specification, run gauge specs

v/s

To execute this specification, run

gauge specs

import com.thoughtworks.gauge.Step;
import com.thoughtworks.gauge.Table;
import com.thoughtworks.gauge.TableRow;
import com.thoughtworks.gauge.ExecutionContext;
import com.thoughtworks.gauge.BeforeSpec;
import java.util.HashSet;
import static org.junit.Assert.assertEquals;
import com.thoughtworks.gauge.Step;
import com.thoughtworks.gauge.datastore.DataStore;
import com.thoughtworks.gauge.datastore.DataStoreFactory;
public class StepImplementation {
@Step("Put <hello> as <greeting>.")
public void writeToDataStore(String value, String key) {
DataStore specDataStore = DataStoreFactory.getSpecDataStore();
specDataStore.put(key, value);
source 'https://rubygems.org'
gem 'test-unit', group: [:development, :test]
gem 'gauge-ruby', '~>0.4.0', group: [:development, :test]
@sriv
sriv / StepImplementation.java
Created September 29, 2016 11:35
Gauge example with UTF-8 characters
import com.thoughtworks.gauge.Step;
public class StepImplementation {
@Step("<whom> को <what> कहते हैं")
public void sayHello(String whom, String what) {
System.out.println(what + ", " + whom);
}
}
@sriv
sriv / install_mono.sh
Created June 22, 2016 06:59 — forked from andreazevedo/install_mono.sh
Install mono on centOS 6.x
$ yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$ cd /usr/local/src
$ wget http://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2
$ tar jxf mono-3.2.8.tar.bz2
$ cd mono-3.2.8
@sriv
sriv / install.txt
Last active January 17, 2020 09:00
Boxstarter script for Windows Dev Box setup - Gauge Development. Hit https://bit.ly/2TsmMEa from Internet Explorer.
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
choco install git
choco install jdk8
choco install firefox
choco install googlechrome
choco install 7zip
choco install vscodium
choco install golang
choco install ojdkbuild