Hi folks, I'm writing some scripts to integrate our cucumber features with stories stored in a wiki, and I'm hoping to use cucumber's parser to parse the features rather than doing it manually. (I don't really care about the feature contents much, just scenario titles and tags)
I've worked out how to parse the features: Cucumber.load_language('en') features = Cucumber::Ast::Features.new parser = Cucumber::Parser::FeatureParser.new feature_files = Dir["#{FEATURE_DIR}/**/*.feature"] feature_files.each do |f| puts "parsing feature file #{f}" features.add_feature(parser.parse_file(f)) end But now I'm digging in to the whole ast visitor thing, and it's getting quite complex to *do* stuff with the features once I've parsed them. I'm sure I can work this out myself, given time, but I was wondering if there are any code examples out there to save me some of the time/effort? Anyone else tried parsing features like this from outside Cucumber itself? Thanks! - Korny -- Kornelis Sietsma korny at my surname dot com "Every jumbled pile of person has a thinking part that wonders what the part that isn't thinking isn't thinking of"
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users