View property.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Calculate order total | |
Rule: discounts are applied for eligible, registered users | |
Given the registered customer | |
| email | <email> | | |
| eligible for discount | <eligible> | | |
| discount | <discount> | | |
When there is an order by <order-email> for <amount> | |
Then the order total should be <total> | |
View .mobbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Joanne Bloggs <jo@example.com> | |
Co-authored-by: John Dowe <123456+JohnDowe@users.noereply.github.com> |
View init.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
View bumbailiff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# The bumbailiff allows the team to take up a small amount of technical debt | |
# (TODOs in the code) for a limited period. After that period the script fails. | |
# | |
# It will find // TODO in .js or .jsx files, and # TODO in .feature files. | |
# | |
# For example, if the allowed period for all the TODOs is 14 days. | |
# * It's OK to have 1 TODO that is 13 days old | |
# * It's OK to have 3 TODOs that are 4 days old |
View ShoutyExtension.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Shouty\Shouty; | |
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Behat\Testwork\ServiceContainer\ExtensionManager; | |
use Behat\Testwork\ServiceContainer\Extension; | |
use Behat\Behat\Context\ServiceContainer\ContextExtension; | |
use Behat\Behat\Context\Initializer\ContextInitializer; | |
use Behat\Behat\Context\Context; |
View safe_promise_fiddling.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('can be returned like a promise', () => { | |
let expectedError = new Error('I am not good.'); | |
let SafePromise = safePromises.failWith(actualError => { | |
expect(actualError).to.equal(expectedError); | |
}); | |
return SafePromise.reject(expectedError) | |
.then(() => { throw new Error('should be caught') }) | |
.catch() | |
}) |
View behat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
suites: | |
default: | |
contexts: | |
- FeatureContext: | |
baseUrl: http://localhost:8080/ |
View war.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: A Game of War | |
Scenario: Two Card Deck | |
Given a shuffled deck with the following cards: | |
| 2 ♥ | | |
| 3 ♣ | | |
And the cards are dealt evenly between 2 players | |
When the first hand is played | |
Then player 2 should hold all the cards | |
And player 2 should have won the game |
View wire.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "*" * 100 | |
require 'cucumber/wire_support/wire_language' | |
class WireFilter < Cucumber::Core::Filter.new(:wire) | |
def test_case(test_case) | |
wire.begin_scenario(test_case) | |
test_case.describe_to receiver | |
wire.end_scenario | |
end | |
end |
View execute_with_tag_filter.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Tag logic | |
In order to conveniently run subsets of features | |
As a Cuker | |
I want to select features using logical AND/OR of tags | |
Background: | |
Given a file named "features/test.feature" with: | |
""" | |
@feature | |
Feature: Sample |
NewerOlder