SlideShare a Scribd company logo
1 of 30
BDD for the OSS
         Contribution Process



Mike Gehard, Software Engineer   mgehard@pivotallabs.com   @mikegehard
Feature:
Feature:
 As a prospective open source contributor
Feature:
 As a prospective open source contributor
 I would like to be able to easily contribute to a project
Feature:
 As a prospective open source contributor
 I would like to be able to easily contribute to a project
 In order to give back to the community
Scenario: Easily set up a development environment
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
 When I clone the git repo
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
 When I clone the git repo
 And I cd into the project
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
 When I clone the git repo
 And I cd into the project
 And I run “bundle install”
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
 When I clone the git repo
 And I cd into the project
 And I run “bundle install”
 And I run “rake”
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
 When I clone the git repo
 And I cd into the project
 And I run “bundle install”
 And I run “rake”
 Then I should see all of the tests pass
Scenario: Easily set up a development environment
 Given there is an OSS project that I want to work on
 When I clone the git repo
 And I cd into the project
 And I run “bundle install”
 And I run “rake”
 Then I should see all of the tests pass
 And I can start working
Scenario: Contribute code
Scenario: Contribute code
 Given I have green tests
Scenario: Contribute code
 Given I have green tests
 When I write tests for the functionality I want to add
Scenario: Contribute code
 Given I have green tests
 When I write tests for the functionality I want to add
 And I watch them fail
Scenario: Contribute code
 Given I have green tests
 When I write tests for the functionality I want to add
 And I watch them fail
 And I write code to make them pass
Scenario: Contribute code
 Given I have green tests
 When I write tests for the functionality I want to add
 And I watch them fail
 And I write code to make them pass
 Then I can easily push code to a fork of the repo
Scenario: Have my commit integrated in the project
Scenario: Have my commit integrated in the project
 Given I have have submitted a well tested patch
Scenario: Have my commit integrated in the project
 Given I have have submitted a well tested patch
 When I wait about a week
Scenario: Have my commit integrated in the project
 Given I have have submitted a well tested patch
 When I wait about a week
 Then I should be able to see my commit in the repo
Scenario: Have my commit integrated in the project
 Given I have have submitted a well tested patch
 When I wait about a week
 Then I should be able to see my commit in the repo
 And I should have commit rights in the main repo
Make it easy to set up dev environment
Write well tested code
Quickly integrate changes
Keep you contributors happy
Be the change you wish to see in the world.
- M Gandhi

More Related Content

More from Mike Gehard

Introduction to Pair Programming
Introduction to Pair ProgrammingIntroduction to Pair Programming
Introduction to Pair Programming
Mike Gehard
 

More from Mike Gehard (9)

Sustainable developmentwithoutninjas
Sustainable developmentwithoutninjasSustainable developmentwithoutninjas
Sustainable developmentwithoutninjas
 
Agile the Pivotal Way
Agile the Pivotal WayAgile the Pivotal Way
Agile the Pivotal Way
 
Introduction to Pair Programming
Introduction to Pair ProgrammingIntroduction to Pair Programming
Introduction to Pair Programming
 
Experiment Driven Development
Experiment Driven DevelopmentExperiment Driven Development
Experiment Driven Development
 
Better Ruby Through Design Principles
Better Ruby Through Design PrinciplesBetter Ruby Through Design Principles
Better Ruby Through Design Principles
 
Developing Developers
Developing DevelopersDeveloping Developers
Developing Developers
 
Focus and Meditation
Focus and MeditationFocus and Meditation
Focus and Meditation
 
Agile the pivotal way
Agile the pivotal wayAgile the pivotal way
Agile the pivotal way
 
Meditation and Software
Meditation and SoftwareMeditation and Software
Meditation and Software
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

BDD for the OSS Contribution Process

  • 1. BDD for the OSS Contribution Process Mike Gehard, Software Engineer mgehard@pivotallabs.com @mikegehard
  • 2.
  • 4. Feature: As a prospective open source contributor
  • 5. Feature: As a prospective open source contributor I would like to be able to easily contribute to a project
  • 6. Feature: As a prospective open source contributor I would like to be able to easily contribute to a project In order to give back to the community
  • 7.
  • 8. Scenario: Easily set up a development environment
  • 9. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on
  • 10. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on When I clone the git repo
  • 11. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on When I clone the git repo And I cd into the project
  • 12. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on When I clone the git repo And I cd into the project And I run “bundle install”
  • 13. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on When I clone the git repo And I cd into the project And I run “bundle install” And I run “rake”
  • 14. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on When I clone the git repo And I cd into the project And I run “bundle install” And I run “rake” Then I should see all of the tests pass
  • 15. Scenario: Easily set up a development environment Given there is an OSS project that I want to work on When I clone the git repo And I cd into the project And I run “bundle install” And I run “rake” Then I should see all of the tests pass And I can start working
  • 16.
  • 18. Scenario: Contribute code Given I have green tests
  • 19. Scenario: Contribute code Given I have green tests When I write tests for the functionality I want to add
  • 20. Scenario: Contribute code Given I have green tests When I write tests for the functionality I want to add And I watch them fail
  • 21. Scenario: Contribute code Given I have green tests When I write tests for the functionality I want to add And I watch them fail And I write code to make them pass
  • 22. Scenario: Contribute code Given I have green tests When I write tests for the functionality I want to add And I watch them fail And I write code to make them pass Then I can easily push code to a fork of the repo
  • 23.
  • 24. Scenario: Have my commit integrated in the project
  • 25. Scenario: Have my commit integrated in the project Given I have have submitted a well tested patch
  • 26. Scenario: Have my commit integrated in the project Given I have have submitted a well tested patch When I wait about a week
  • 27. Scenario: Have my commit integrated in the project Given I have have submitted a well tested patch When I wait about a week Then I should be able to see my commit in the repo
  • 28. Scenario: Have my commit integrated in the project Given I have have submitted a well tested patch When I wait about a week Then I should be able to see my commit in the repo And I should have commit rights in the main repo
  • 29. Make it easy to set up dev environment Write well tested code Quickly integrate changes Keep you contributors happy
  • 30. Be the change you wish to see in the world. - M Gandhi

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n\n
  7. \n\n
  8. \n\n
  9. \n\n
  10. \n\n
  11. \n\n
  12. \n\n
  13. \n\n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. Thanks to Evan Pheonix and the Rubinius project for the idea of commit rights.\n
  21. Thanks to Evan Pheonix and the Rubinius project for the idea of commit rights.\n
  22. Thanks to Evan Pheonix and the Rubinius project for the idea of commit rights.\n
  23. Thanks to Evan Pheonix and the Rubinius project for the idea of commit rights.\n
  24. Thanks to Evan Pheonix and the Rubinius project for the idea of commit rights.\n
  25. \n
  26. \n