# \[Beginner\] How to perform testing

**URL:** https://brian.discourse.group/t/beginner-how-to-perform-testing/1056
**Category:** Support
**Created:** [19 September 2023 18:08 UTC](https://brian.discourse.group/t/beginner-how-to-perform-testing/1056 "2023-09-19T18:08:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DHRUVJ2003](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/dhruvj2003/32/623_2.png) [@DHRUVJ2003](https://brian.discourse.group/u/DHRUVJ2003)
#### Post date: [19 September 2023 18:08 UTC](https://brian.discourse.group/t/beginner-how-to-perform-testing/1056/1 "2023-09-19T18:08:13Z")

</div>

Hello everyone ,  
I am Dhruv Jariwala, Computer Engineering undergrad from Mumbai, India.  
I am a data science and Machine Learning enthusiast. I am interested in contributing to Brian but I am a newbie to open source.

I have built the development install of Brian. I working on [#1476](https://github.com/brian-team/brian2/issues/1476) since I felt that it is beginner friendly. I have corrected the formula but now I am not understanding how to test it since the [docs](https://brian2.readthedocs.io/en/stable/developer/guidelines/workflow.html) stated:

> For bugs, it is important to not only fix the bug but also to introduce a new test case (see [Testing](https://brian2.readthedocs.io/en/stable/developer/guidelines/testing.html)) that makes sure that the bug will not ever be reintroduced by other changes

I know that the doubt is silly and trivial. Apologies for the same and Thanks in advance ☺

---

<div class="post-metadata">

### Author: ![mstimberg](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/mstimberg/32/11_2.png) [@mstimberg](https://brian.discourse.group/u/mstimberg)
#### Post date: [20 September 2023 17:51 UTC](https://brian.discourse.group/t/beginner-how-to-perform-testing/1056/2 "2023-09-20T17:51:42Z")

</div>

Hi @DHRUVJ2003. Many thanks for your interest in helping out! Nothing silly or trivial about your question 😊

The issue you selected is indeed quite beginner-friendly – correcting the formula in the respective file is basically all that is needed. It is not a good example for a general bug fix in Brian, though, since it is in an example (i.e., part of the documentation), and not part of Brian’s own code. It is therefore not necessary (or possible, actually), to write a test case for the issue.  
Unfortunately, contributing and updating examples is more complex at the moment than it should be, since in addition to changing the example code, there’s a non-trivial procedure with the git submodule that stores the generated plots for the examples… At the moment, I’d recommend to only do a pull request with changes to the example code, and I will take care of updating the example plot, if necessary.

---

<div class="post-metadata">

### Author: ![DHRUVJ2003](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/dhruvj2003/32/623_2.png) [@DHRUVJ2003](https://brian.discourse.group/u/DHRUVJ2003)
#### Post date: [20 September 2023 18:12 UTC](https://brian.discourse.group/t/beginner-how-to-perform-testing/1056/3 "2023-09-20T18:12:26Z")

</div>

okay ,thank you sir , I’ll do the needful. (Made a pr. Pls review the same )  
One more doubt…Are [tutorials](https://brian2.readthedocs.io/en/stable/resources/tutorials/index.html) sufficient to understand brian ? Can you provide me with any other specific resource such that I can understand the codebase of brian …So that I can make better contributions in future.

Once again thanks a lot 😊
