Search code examples
rubycucumbershoesfeature-file

Using a simple GUI to run a Cucumber Feature File


I am utilizing the "shoes" tool to create a window with a button in the middle. I would like the user to be able click the button and then the program runs a Cucumber feature file, but I don't know how to run a feature file from within a class or if its possible. Very new at this so any advice is appreciated. Let me know if more information is necessary.


Solution

  • Try something like

    Shoes.app do
      @s = stack {}
    
      button "Run Cucumber" do
        @out = `cucumber`
        @s.clear { para @out }
      end
    end