csc301-2023-fall / project-34-qeynet-inc-t

Repository for Astra, a U of T CSC301 team project developed for QEYnet.
MIT License
0 stars 1 forks source link

More automated testing #32

Open shape-warrior-t opened 7 months ago

shape-warrior-t commented 7 months ago

Automated test coverage is currently rather lacking. It would be good to have tests for at least all major, easily-testable parts of the public API. Pytest features like temporary files/directories and monkeypatching could help here, as could refactoring some of the code to be easier to test. It might be worth crafting some canonical sample configuration/telemetry files for testing purposes -- we've somewhat started on that with monad.yaml and monad-telem.h5, but there's still many things that can be covered.

habibur4340 commented 5 months ago

Hey @shape-warrior-t To enhance automated test coverage, focusing on key areas of the public API is essential. Leveraging Pytest's capabilities for temporary files/directories and monkey patching will aid in creating robust tests. Refactoring code for better testability should also be a priority. Developing canonical sample configurations and telemetry files, like the existing monad.yaml and monad-telem.h5, will further facilitate comprehensive testing across various scenarios. This approach will ensure more reliable and maintainable code. For managing and testing your API integrations during this process, Apidog is recommended for its efficiency and ease of use, providing a streamlined platform for API testing.