title: Unable to run a JBehave story
body: <p>Can someone help me to run a JBehave story? I've got a Maven project in Eclipse.</p>
  
  <p>The story is:</p>
  
  <pre><code>Meta:
  @author Nikolay Vasilev
  @bdd-talk: BG JUG
  
  Scenario:  Validating BMI calculator
  
  Given a body mass index calculator
  When a doctor populates health record of a patient with mass 90 kg and 175 cm tall
  Then patient's body mass index is 23
  </code></pre>
  
  <p>It is stored in <code>src/test/resources/stories</code>, which is reflected in the <code>pom.xml</code>:</p>
  
  <pre><code>&lt;build&gt;
      &lt;testResources&gt;
          &lt;testResource&gt;
              &lt;directory&gt;src/test/resources/stories&lt;/directory&gt;
          &lt;/testResource&gt;
      &lt;/testResources&gt;
      ...
  </code></pre>
  
  <p>The steps class is:</p>
  
  <pre><code>public class MetricBMICalculatorSteps {
      private HealthRecord healthRecord;
      private MetricBMICalculator bmiCalculator;
      private BodyMassIndex bmi;
  
      @Given("a body mass index calculator")
      public void initBMICalculator() {
          bmiCalculator = new MetricBMICalculator();
      }
  
      @When("a doctor populates health record of a patient with mass $weight kg and $height cm tall")
      public void populateHealthRecord(@Named("weight") float weight, @Named("height") float height) {
          healthRecord = new ISUHealthRecord();
          healthRecord.setWeight(weight);
          healthRecord.setHeight(height);
          bmi = bmiCalculator.calculate(healthRecord);
      }
  
      @Then("Then patient's body mass index is $bmi")
      public void checkBmi(@Named("bmi") double bmiValue) {
          Assert.assertEquals(bmiValue, bmi.value());
      }
  }
  </code></pre>
  
  <p>My Embedder is:</p>
  
  <pre><code>public class MyEmbedder extends Embedder {
  
      // --- Constants -----------------------------------------------------------
  
      private Configuration configuration;
  
      // --- Constructors --------------------------------------------------------
  
      public MyEmbedder() {
          configuration = loadConfiguration();
      }
  
      // --- Methods -------------------------------------------------------------
  
      @Override
      public Configuration configuration() {
          return configuration;
      }
  
      // Here we specify the steps classes
      @Override
      public List&lt;CandidateSteps&gt; candidateSteps() {
          // varargs, can have more that one steps classes
          return new InstanceStepsFactory(configuration(), new MetricBMICalculatorSteps()).createCandidateSteps();
      }
  
      // --- Methods (Auxiliary) -------------------------------------------------
  
      private Configuration loadConfiguration() {
          Configuration configuration = new MostUsefulConfiguration();
          configuration.useStoryLoader(loadStoryLoader());
          configuration.useStoryReporterBuilder(loadStoryReporterBuilder());
          configuration.useStepMonitor(new SilentStepMonitor());
  
          return configuration;
      }
  
      // where to find the stories
      private StoryLoader loadStoryLoader() {
          return new LoadFromRelativeFile(
                  CodeLocations.codeLocationFromClass(this.getClass()));
      }
  
      private StoryReporterBuilder loadStoryReporterBuilder() {
          // CONSOLE and TXT reporting
          StoryReporterBuilder storyReporterBuilder = new StoryReporterBuilder();
          storyReporterBuilder.withDefaultFormats();
          storyReporterBuilder.withFormats(Format.CONSOLE, Format.TXT);
          return storyReporterBuilder;
      }
  
      public void runStory(String story) {
          if (story != null &amp;&amp; story.endsWith(".story")) {
              this.runStoriesAsPaths(Arrays.asList(story));
          } else {
              throw new RuntimeException("Problem locating .story file:" + story);
          }
      }
  }
  </code></pre>
  
  <p>When I try to run it with:</p>
  
  <pre><code>String storyRelativePath = "health/steps/MetricBMICalculator.story";
  MyEmbedder eclipseEmbedder = new MyEmbedder(storyRelativePath);
  eclipseEmbedder.runStory(storyRelativePath);
  </code></pre>
  
  <p>it seems to me that the steps file is not executed whatsoever (at least during debugging the execution doesn't stop on the breakpoints in the steps class which I put). Here is the output from the execution:</p>
  
  <pre class="lang-none prettyprint-override"><code>Processing system properties {}
  
  (BeforeStories)
  Using 1 threads
  Running story health/steps/MetricBMICalculator.story
  
  (AfterStories)
  Generating reports view to 'D:\workspace\bg-jug-bdd\jug-bdd-jbehave-maven\target\jbehave'
  
  using formats `[stats, console, txt]`
  
  and view properties
  {defaultFormats=stats, decorateNonHtml=true, viewDirectory=view, decorated=ftl/jbehave-report-decorated.ftl, reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, navigator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, nonDecorated=ftl/jbehave-report-non-decorated.ftl}
  Reports view generated with 2 stories (of which 0 pending)  containing 0 scenarios (of which 0 failed and 0 pending)
  </code></pre>
  
  <p>Does anyone have a clue what I am supposed to do in order to run that story?</p>