sjacorg / bayanat

Open source data management solution for human rights documentation.
https://bayanat.org/
GNU Affero General Public License v3.0
27 stars 16 forks source link

Add Tests #1

Open oussjarrousse opened 3 years ago

oussjarrousse commented 3 years ago

Add tests to existing code and make sure test coverage is high. Use tox with pytest, pytest-flask etc.

oussjarrousse commented 3 years ago

I forked the project and started adding configuration files related to testing and also made small non-breaking changes to enferno, basically adding a TestConfig class to settings.py.

the folder structure provides a nice split between app code and test code as all test code is in one folder on the project root.

I will add some simple tests so that it provides a start towards covering much of the code with tests.

oussjarrousse commented 3 years ago

I am ready for a pull-request. You could check the changes I made on my fork here: https://github.com/oussjarrousse/bayanat/tree/testing

Could you please create a feature branch for this issue so that I create the pull request and we can discuss further.

sjacgit commented 3 years ago

Thank you very much for taking the time to contribute! We'll look into your changes and get back to you very soon.

oussjarrousse commented 10 months ago

I think open source projects like Bayanat requires automated tests because:

Also as an enduser, I have much less trust in code without tests than with code that have high test coverage.

Please consider my offer to create a pull request that adds the testing boiler plate for the backend (with tox and pytest)... and I will be adding tests routinely until we get a good code coverage...

sjacgit commented 10 months ago

Hello again.

We really appreciate this offer.

We've been recently successful in acquiring funding to add tests to Bayanat. We were actually planning to reply to this issue next month :)

We expect to publish the first iteration of tests in January along with some guidelines. Please hang tight until then and we'd be happy to collaborate with you.

Meantime, if there are parts of the code for which you'd like to add tests, please let us know.

sjacgit commented 8 months ago

Thanks for your patience. We just pushed a new version that contains tests. We'll be adding more over the next few months. Please let us know if you have any suggestions/comments or if you'd like to contribute.