Displaying 1 result from an estimated 1 matches for "rautotest".
Did you mean:
autotest
2008 Oct 18
4
Problems when programmatically defining examples
...with a custom
formatter. Here are the code snippets from my app:
Launching the runner:
example_groups =
test_expectation.example_groups_for(system_state)
@output = StringIO.new
options = Spec::Runner::OptionParser.parse(["--format",
"RAutotest::Runner::Formatter"], @output, @output)
example_groups.each {|example_group|
options.add_example_group(example_group) }
Spec::Runner::CommandLine.run(options)
Building the example groups:
examples =
Class.new(Spec::Example::ExampleGroup).d...