title: Cucumber - Custom HTML Formatter Basics
body: <p>I'm looking to do something relatively simple with a custom cucumber html formatter which is to display the reports where the scenarios are collapsed by default instead of expanded. I have been using this reference as a starting point for implementation:</p>
  
  <p><a href="https://github.com/cucumber/cucumber/issues/113#issuecomment-1997654" rel="nofollow">https://github.com/cucumber/cucumber/issues/113#issuecomment-1997654</a></p>
  
  <p>I have done the following:</p>
  
  <ul>
  <li>Copied the html.rb file to my features/support and renamed it my_html.rb</li>
  <li>Modified the before_steps method to use @builder &lt;&lt; ''</li>
  <li>Altered the class definition within the file from Html to MyHtml</li>
  <li>Attempted to call the formatter using 'cucumber -d -f Cucumber::Formatter:MyHtml'</li>
  </ul>
  
  <p>but I get </p>
  
  <pre><code>no such file to load -- cucumber:formatter:my_html
  Error creating formatter: Cucumber:Formatter:MyHtml (LoadError)
  </code></pre>
  
  <p>so I try and specify the file itself but get the same error.</p>
  
  <p>I'm relatively new to cucumber and object orientation so my simple question is - how do I get this to work?</p>
  
  <p>I believe my environment is Ok I have an env.rb and hooks.rb file in the same features/support directory that are picked up ok.</p>
  
  <p>Also, once I get it to see where the file is, do I need to modify the require statements as those (relative) references don't exist under my features/support directory..</p>
  
  <p>Thanks in advance</p>