asc-csa / ckanext-asc-csa

📈 Extension CKAN pour le portail de données et information ouvertes de l'ASC | 📈CKAN Extension for the CSA open data and information portal

Home Page:https://donnees-data.asc-csa.gc.ca/dataset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To implement a test suite

emilinecsa opened this issue · comments

---- 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.

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

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

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.