Documentation of an Origen-generated test program can be created as follows (requires a documentation interface to be setup):
% prog = OrigenTesters::Doc.generate_program_model("program/probe_1.rb", :target => "default") <%= render "doc_helpers/test/flow.md", :heading => "Probe 1", :program => prog, :flow => :probe_1_flow %>
The test flow helper takes the following required options:
Additionally these options are available to customize the output:
true
to generate links to documentation of the patterns
in place of the pattern name. Pattern docs should be placed in templates/web/patterns
and the
files should be called <pattern_name>.md{ :job => "P1" }
Here is a live example:
Blah blah, this is marked down:
Measure the output of the vreg under no load, this is a simple test to catch any gross defects that prevent the vreg from working
Blah blah, this is marked down: