GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexlehm/jbehave-junit-examples: example project junit reporting

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
src
src
 
 
.classpath
.classpath
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
LICENSE-jbehave.txt
LICENSE-jbehave.txt
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
ivy.xml
ivy.xml
 
 

Repository files navigation

Very preliminary implementation of a junit runner that reports each example as an individual test in the eclipse junit display.

This extends the AnnotatedPathRunner and implements a StoryReporter that reports the success/failure to the Junit notifier, it should work with the other AnnotatedPathRunners as well (guice, spring etc), I have mostly tested it with the GuiceAnnotatedPathRunner.

Currently all tests show up as unrooted tests and it only works for scenarios that actually use an example table, maybe I can fix this later.

The StoryReporter implementation doesn't catch all possibilities, this could be extended, but as a better solution I would prefer a reporter or monitor that is triggered from inside the actual tests, not by tracking the individual steps. An EmbedderMonitor doesn't work for this either since it doesn't report the necessary events, maybe something else could be implemented.

Please note that I currently use Ivy for Eclipse to build my projects, this will work with maven or anything else as well, you just need the two classes MyStoryReporter and ReportingAnnotatedPathRunner in the same directory as your StoriesRunner. If you are using a DI framework, you have to change the parent class for ReportingAnnotatedPathRunner to e.g. GuiceAnnotatedPathRunner, everything else in the class should be the same for all frameworks (have only tested that with Guice yet). To connect the reporter to the StoryReporterBuilder only .withReporters(MyStoryReporter.getInstance()) is necesary (where this shows up depends on the DI framework again).

This project currently lives at https://github.com/alexlehm/jbehave-junit-examples

Please refer to the file LICENSE.txt (files authored by me) or to LICENSE-jbehave.txt (files changed by me) both licenses are identical except for the author name.

If you have any questions, please send me a mail to alexlehm(at)gmail.com

About

example project junit reporting

Resources

Readme
Activity

Stars

2 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.