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

To implement a test suite #155

Open
emilinecsa opened this issue Dec 15, 2022 · 4 comments
Open

To implement a test suite #155

emilinecsa opened this issue Dec 15, 2022 · 4 comments
Assignees
Labels
long-term These issues are not of immediate concern. Test & Validation

Comments

@emilinecsa
Copy link
Contributor

---- low priority for now ---
The Open Data Portal will grow over the years. It is important to make sure that the implementation of new software features will not cause any side effect to the current portal. This way, I suggest to implement a test suite or automated tests. Those tests can be executed each time a new version of the portal is deployed.

In addition, having a test procedure that will serve as regression tests would be an asset to the project.

@emilinecsa emilinecsa added long-term These issues are not of immediate concern. Test & Validation labels Dec 15, 2022
@emilinecsa emilinecsa self-assigned this Dec 15, 2022
@emilinecsa
Copy link
Contributor Author

There is a test folder here. I am not sure what it is used for. There are only 2 files. One is empty where as the other one is pretty short.
https://github.com/asc-csa/ckanext-asc-csa/tree/master/ckanext/csa/tests

@emilinecsa
Copy link
Contributor Author

This web page describes how to implement unit tests in the Python environment:
https://docs.python.org/3/library/unittest.html

@emilinecsa
Copy link
Contributor Author

The test module is already part of the coding environment in Python. I have done some testing with the Open Science Road Map. Adding unit tests does not impact the architecture nor the current code. We need to create a Python main test script for the Open Data Portal and to define unit tests.

@nfee006
Copy link
Member

nfee006 commented Feb 10, 2023

@emilinecsa worth looking into this: https://docs.ckan.org/en/2.9/contributing/test.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
long-term These issues are not of immediate concern. Test & Validation
Development

No branches or pull requests

2 participants