junction icon indicating copy to clipboard operation
junction copied to clipboard

Complete the testing suite for all models (Both unit and functional)

Open mish24 opened this issue 7 years ago • 5 comments

I'll try to do this by the end of this month as the new changes are made. Shall I go ahead with it?

mish24 avatar Aug 20 '17 15:08 mish24

Thanks for thinking about the test cases. Testing models can be tricky.

Would you be interested in writing test cases for views/services which internally relies on models?

kracekumar avatar Aug 20 '17 16:08 kracekumar

@kracekumar Sure!

mish24 avatar Aug 20 '17 16:08 mish24

@mish24 Good. The test runner displays the coverage information. From there you can start finding which part of the code needs testing.

kracekumar avatar Aug 20 '17 16:08 kracekumar

I just realized the same. Most PRs don't have a testcase. Is there anything I can help with in this area?

bhavaniravi avatar Jun 14 '20 21:06 bhavaniravi

We have a bunch of integration tests but very little unit tests. You can check https://github.com/pythonindia/junction/tree/master/tests/unit and add unit tests for the models. You can start with the Proposals and Conferences model.

ananyo2012 avatar Jun 15 '20 05:06 ananyo2012