All Projects → thejamespinto → bdd

thejamespinto / bdd

Licence: MIT license
Given/When/Then/And/But output to RSpec and Minitest

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to bdd

Aruba
Test command-line applications with Cucumber-Ruby, RSpec or Minitest. The most up to date documentation can be found on Cucumber.Pro (https://app.cucumber.pro/projects/aruba)
Stars: ✭ 900 (+2627.27%)
Mutual labels:  rspec, bdd, minitest
Email Spec
Collection of RSpec/MiniTest matchers and Cucumber steps for testing email in a ruby app using ActionMailer or Pony
Stars: ✭ 1,142 (+3360.61%)
Mutual labels:  rspec, minitest
Vscode Ruby Test Adapter
A Ruby test adapter extension for the VS Code Test Explorer
Stars: ✭ 50 (+51.52%)
Mutual labels:  rspec, minitest
Lurker
📖 The ultimate tool for documenting and testing APIs in Rails
Stars: ✭ 120 (+263.64%)
Mutual labels:  rspec, minitest
N plus one control
RSpec and Minitest matchers to prevent N+1 queries problem
Stars: ✭ 345 (+945.45%)
Mutual labels:  rspec, minitest
Knapsack
Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
Stars: ✭ 430 (+1203.03%)
Mutual labels:  rspec, minitest
With model
Dynamically build an Active Record model (with table) within a test context
Stars: ✭ 119 (+260.61%)
Mutual labels:  rspec, minitest
cppspec
BDD testing for C++ à la RSpec
Stars: ✭ 13 (-60.61%)
Mutual labels:  rspec, bdd
Spectrum
A BDD-style test runner for Java 8. Inspired by Jasmine, RSpec, and Cucumber.
Stars: ✭ 142 (+330.3%)
Mutual labels:  rspec, bdd
Factory trace
Simple tool to maintain factories and traits from FactoryBot
Stars: ✭ 184 (+457.58%)
Mutual labels:  rspec, minitest
Action Cable Testing
Action Cable testing utils
Stars: ✭ 192 (+481.82%)
Mutual labels:  rspec, minitest
Everydayrails Rspec 2017
Sample source for the 2017 edition of Everyday Rails Testing with RSpec.
Stars: ✭ 280 (+748.48%)
Mutual labels:  rspec, bdd
Crystalball
Regression Test Selection library for your RSpec test suite
Stars: ✭ 259 (+684.85%)
Mutual labels:  rspec, tests
Rantly
Ruby Imperative Random Data Generator and Quickcheck
Stars: ✭ 241 (+630.3%)
Mutual labels:  rspec, minitest
factory bot-preload
Preload factories (factory_bot) just like fixtures. It will be easy and, probably, faster!
Stars: ✭ 68 (+106.06%)
Mutual labels:  rspec, minitest
Fake ftp
A fake FTP server for use with ruby tests
Stars: ✭ 77 (+133.33%)
Mutual labels:  rspec, minitest
knapsack pro-ruby
Knapsack Pro gem splits tests across parallel CI nodes and makes sure that tests will run in optimal time on each node.
Stars: ✭ 101 (+206.06%)
Mutual labels:  rspec, minitest
pytest-it
Decorate your pytest suite with RSpec-style pytest markers, then run `pytest --it` to see a plaintext spec of the test structure.
Stars: ✭ 26 (-21.21%)
Mutual labels:  rspec, bdd
Mutant
Automated code reviews via mutation testing - semantic code coverage.
Stars: ✭ 1,794 (+5336.36%)
Mutual labels:  rspec, minitest
Still life
Rails upgrade's best friend
Stars: ✭ 213 (+545.45%)
Mutual labels:  rspec, minitest

Bdd

Bdd is a User Story Framework. Add Acceptance Criteria documentation directly on your Ruby Tests.

Status

Is It Working? Is It Tested? Code Quality # of Downloads Get Involved!
Master Build Status Code Climate Code Climate Downloads GitHub Issues

Compatibility

Ruby 2.0 through 2.7

Pitch

This gem provides the same benefits as gem Cucumber, and it's easier to use in projects.

Works with all ruby test frameworks (RSpec and Minitest).
Works with all test types (Capybara, units, features, etc).


1. Take your User Stories.

2. Write them as unobtrusive commentary in your test code.

3. Run your tests.

4. You'll see all your User Stories neatly organized in the output.

5. If your code breaks, that line will be highlighted in red.

Read more about User Stories on Wikipedia.

Example

1. BEFORE

Before

2. AFTER

After

3. RUN TESTS

Run Tests

4. CHECK OUTPUT

Check Output

Installation

Installation For RSpec

# Gemfile

group :development, :test do
  gem 'rspec'
  gem 'rspec-rails' # if you are using Rails
  gem 'bdd'
end
# spec/spec_helper.rb
require 'bdd'

Bdd.configure do |config|
  config.framework :rspec
  config.reporters :output, :yaml
  config.language %w[Given], %w[When Then], %w[And But]

  # Optionally, add other languages:
  # config.language pre_conditions, post_conditions, conjunctions
  # config.language %w[Dado], %w[Quando Entao], %w[E Mas] # Portuguese
  # config.language %w[Dato], %w[Cuando Entonces], %w[Y Mas] # Spanish
  # config.language %w[Zakładając], %w[Jeśli To], %w[Także Ale] # Polish
end

Installation For Minitest

# Gemfile

group :development, :test do
  gem 'minitest'
  gem 'minitest-rails' # if you are using Rails
  gem 'bdd'
end
# test/test_helper.rb
require 'bdd'

Bdd.configure do |config|
  config.framework :minitest
  config.reporters :output, :yaml
  config.language %w[Given], %w[When Then], %w[And But]

  # Optionally, add other languages:
  # config.language pre_conditions, post_conditions, conjunctions
  # config.language %w[Dado], %w[Quando Entao], %w[E Mas] # Portuguese
  # config.language %w[Dato], %w[Cuando Entonces], %w[Y Mas] # Spanish
  # config.language %w[Zakładając], %w[Jeśli To], %w[Także Ale] # Polish
end

Authors & Contributions

Contributing

  1. Fork it ( https://github.com/thejamespinto/bdd/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Documentation

Chart

  • Frameworks
    • RSpec
    • Minitest
  • Reporters
    • Output
    • YAML
    • HTML
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].