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

Sustainable developmentwithoutninjas
Sustainable developmentwithoutninjasSustainable developmentwithoutninjas
Sustainable developmentwithoutninjasMike Gehard
 
Agile the Pivotal Way
Agile the Pivotal WayAgile the Pivotal Way
Agile the Pivotal WayMike Gehard
 
Introduction to Pair Programming
Introduction to Pair ProgrammingIntroduction to Pair Programming
Introduction to Pair ProgrammingMike Gehard
 
Experiment Driven Development
Experiment Driven DevelopmentExperiment Driven Development
Experiment Driven DevelopmentMike Gehard
 
Better Ruby Through Design Principles
Better Ruby Through Design PrinciplesBetter Ruby Through Design Principles
Better Ruby Through Design PrinciplesMike Gehard
 
Developing Developers
Developing DevelopersDeveloping Developers
Developing DevelopersMike Gehard
 
Focus and Meditation
Focus and MeditationFocus and Meditation
Focus and MeditationMike Gehard
 
Agile the pivotal way
Agile the pivotal wayAgile the pivotal way
Agile the pivotal wayMike Gehard
 
Meditation and Software
Meditation and SoftwareMeditation and Software
Meditation and SoftwareMike 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

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 Servicegiselly40
 
[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.pdfhans926745
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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 textsMaria Levchenko
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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 organizationRadu Cotescu
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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.pdfEnterprise Knowledge
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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 productivityPrincipled Technologies
 
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 SolutionsEnterprise Knowledge
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 

Recently uploaded (20)

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
 
[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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 

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