Skip to content

Instantly share code, notes, and snippets.

@paramadeep
paramadeep / gist:d36f2c931edd34803137
Created May 18, 2015 02:24
Lagstash Config for Dropwizard (Jetty) Logs
input
{
file
{
path=>"<log file dir>/*.log"
start_position=>"beginning"
}
}
filter {
grok {
@paramadeep
paramadeep / pattiyal.rb
Created February 3, 2015 10:45
Get the list of scenarios marked as @wip in a cucumber test suite. Includes tags at scenario and feature level.
total_count = 0
Dir['features/**/*.feature'].each do |file|
a= IO.read(file).split("\n").map do |x|
x.rstrip.lstrip
end
a = a.select{|x| x !=nil && x != ""}
printed_file = false
next if a[0].nil?
if a[0].downcase.include? "@wip"
p file.to_s