Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information on test-driven development to contributing guidelines #386

Open
tsalo opened this issue Jan 16, 2025 · 0 comments
Open

Add information on test-driven development to contributing guidelines #386

tsalo opened this issue Jan 16, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@tsalo
Copy link
Member

tsalo commented Jan 16, 2025

Our contributing guidelines don't have much information on our preferred coding style or the TDD practices that we're trying to adopt.

The basic approach to fixing bugs should be:

  1. Write a test that fails because of the current bug.
  2. Try to cover all reasonable inputs and branching logic of the function in question.
  3. Open a PR with the new/updated test that fails.
  4. Implement a fix.
  5. Push the fix.
@tsalo tsalo added the documentation Improvements or additions to documentation label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant