Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.
/ BDD-Behave Public archive

Behavior Driven Development framework for Raku

License

Notifications You must be signed in to change notification settings

gdonald/BDD-Behave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Behave

A behavior driven development framework written in Raku.

Currently developed against Raku v6.d.

Install using zef

zef install BDD::Behave

Running Behave:

If a file is not specified Behave will automatically look for a specs directory and will run anything matching /spec.raku/.

An example:

specs/001-spec.raku

use BDD::Behave;

describe 'this spec', {
  let(:answer, { 42 });

  it 'passes', {
    expect(:answer).to.be(42);
  }
}

describe 'this final spec', {
  let(:answer, { 42 });

  it 'fails at line 12', {
    expect(:answer).to.be(41);
  }
}

You can run the spec like this:

$ behave specs/001-spec.raku

Output:

specs/001-spec.raku

    ⮑  'this spec''passes'
            ⮑  SUCCESS

    ⮑  'this final spec''fails on the next line'
            ⮑  FAILURE

Failures:

  [ ✗ ] specs/001-spec.raku:12

Local Behave development:

For local development of Behave itself:

raku -Ilib bin/behave

Prove Tests

To run the tests in t/*:

prove6 -Ilib t

Status

.github/workflows/raku.yml

Documentation

See the examples in specs/*.

License

Behave is released under the Artistic License 2.0

About

Behavior Driven Development framework for Raku

Topics

Resources

License

Stars

Watchers

Forks

Languages