Skip to content
forked from idebruijn/bddl

behaviour driven development colorized logging package

Notifications You must be signed in to change notification settings

ernest-ag5/bddl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

behaviour driven development logging (BDDL)

BDDL is a behaviour driven development colorized logging package, making it easy to see what you are testing in your terminal.

Tips on how to use it

Use the dot import so you can write you bddl in a easy to read given-when-then style. You can also add as much parameters as you want and they will show up in your terminal with a different color.

Example:
package main

import (
	"testing"

	. "github.com/idebruijn/bddl"
)

func TestExample(t *testing.T) {
	var email := example@bddl.com
	var password := password123

	Given(t,"I create a customer")
	When(t,"I login with", email, "and", password)
	Then(t, "my login was successful")
}

Outputs (optionally with terminal colors):

	Given I create a customer
	When I login with ezample@bddl.com and password123
	Then my login was successful

About

behaviour driven development colorized logging package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%