Skip to content

A plugin for the Sweet testing framework to output JUnit files for test results

License

Notifications You must be signed in to change notification settings

aphistic/sweet-junit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sweet-junit

A plugin for the Sweet testing framework to output JUnit files for test results

Usage

Using this plugin with sweet is pretty straightforward:

func Test(t *testing.T) {
    sweet.T(func(s *sweet.S) {
        s.RegisterPlugin(junit.NewPlugin())

        s.RunSuite(t, &mySuite{})
    })
}

Once the plugin is registered with sweet, you can specify the file to write the output to by passing the -sweet.opt when running go test and providing the junit.output key with the path you'd like to write the junit file to, such as:

$ go test -sweet.opt "junit.output=junit.xml"

About

A plugin for the Sweet testing framework to output JUnit files for test results

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages