Is it possible to run a story as a Story object, and not have to specify a
path?

Currently I'm retrieving stories from a online editor in the form of a
json, and parsing that text into a story object via..

embedder.storyRunner().storyOfText(embedder.configuration(),
storyText.toString(), "story name");

To run each story, I've had to execute them with..

embedder.storyRunner().run(embedder.configuration(), candidateSteps, story);

I've edited the Embedder and StoryManager in an attempt to run them
natively, and it seems to work. However, I was wondering if there was a
better way to do this or if there was already something setup to do this?
I'd rather not write the stories to disk.

This stack overflow question gives some additional context to what I am
trying to achieve
http://stackoverflow.com/questions/16701341/run-jbehave-from-a-string-in-java

Thanks in advance!
-Brent

Reply via email to