Tests needs to be added backend
Currently, there is no tests are added to the project. I would like some community help if someone can help to add tests to the projects.
Couple questions:
- Is this ticket specific to the Rust code base?
- What level of granularity is this looking for can I ask? (e.g. Unit, Integration, etc.)
- is the api included in the current scope of this? (will postman/insomnia etc be needed)
Are there any style-guides / standards or reference documents from projects (rust or otherwise) you'd like to use?
@Ryu-Powderhorn IF you want the postman collection i did commit my export. It does have a token and password but it is for my localhost so hopefully it is ok. ( will merge it into master soon).
https://github.com/avored/avored-rust-cms/tree/245-radio-button-support/resources/postman
In regards with the unit test and integration test. currently we need can easily do an integration test. To do a unit test might be bit tricky as of now. As it requies us to mock the State method which requires how we have implemented AvoredState.
Working on some basic integration tests as I get the time based on the starter you gave me. to see if I can help much. Focusing in admin_user right now.