Sha256: 7cbb712a6bbbbdf47546e292d859988898d226bf48b76cadd8a848791b2e17e6
Contents?: true
Size: 1.52 KB
Versions: 14
Compression:
Stored size: 1.52 KB
Contents
## Pull requests XCPretty is tested with [Cucumber](http://cukes.info) and [RSpec](http://rspec.info). If you're planning to contribute, please do write tests. Here's an example workflow for a contribution: #### 1. Write a failing feature - These are a full-stack end to end tests - You can find features in `features/`. You'll need to write a `feature` and implement it's `steps`. - Try to reuse as many matchers as possible - This tests are slower because they're executing `xcpretty` command for each test Here's an example feature for adding output without UTF8: ``` gherkin Scenario: Running tests without UTF-8 support Given I have a passing test in my suite And I pipe to xcpretty with "--no-utf" Then I should see a non-utf prefixed output ``` And the steps: - `Given I have a passing test in my suite` ``` ruby Given(/^I have a passing test in my suite$/) do add_run_input SAMPLE_OCUNIT_TEST end ``` - `And I pipe to xcpretty with "--no-utf"` ``` ruby When(/^I pipe to xcpretty with "(.*?)"$/) do |flags| run_xcpretty(flags) end ``` - `Then I should see a non-utf prefixed output` ``` ruby Then(/^I should see a non-utf prefixed output$/) do run_output.should start_with(".") end ``` #### 2. Write a failing BDD test - These are unit tests, and they're very fast (below 200ms for the entire suite) - You should be running them continuously with `kicker`, or your awesome Vim binding #### 3. Implement your awesome contribution - This should fix unit tests one-by-one, and finally your `feature` will be passing
Version data entries
14 entries across 14 versions & 2 rubygems