Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. JBehave - all steps marked pending?
  2. class Scenario1 extends JUnitStory {
  3.     @Delegate MySteps steps = new MySteps()
  4.  
  5.     @Override
  6.     public Configuration configuration() {
  7.         return new MostUsefulConfiguration()
  8.                 .useStoryLoader(new LoadFromRelativeFile(new File('src/test/groovy').toURL()))
  9.                 .useStoryReporterBuilder(
  10.                 new StoryReporterBuilder()
  11.                         .withDefaultFormats()
  12.                         .withFormats(Format.HTML, Format.CONSOLE, Format.TXT)
  13.  
  14.         );
  15.     }
  16.  
  17.     @Override
  18.     public List candidateSteps() {
  19.         final candidateSteps = new InstanceStepsFactory(configuration(), this).createCandidateSteps()
  20.         return candidateSteps;
  21.     }
  22. }
  23.        
  24. somePattern(){
  25.   // PENDING
  26. }