avored-rust-cms icon indicating copy to clipboard operation
avored-rust-cms copied to clipboard

Tests needs to be added backend

Open indpurvesh opened this issue 1 year ago • 4 comments

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.

indpurvesh avatar Sep 27 '24 22:09 indpurvesh

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 avatar Oct 09 '24 02:10 Ryu-Powderhorn

@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

indpurvesh avatar Oct 11 '24 22:10 indpurvesh

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.

indpurvesh avatar Oct 11 '24 22:10 indpurvesh

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.

Ryu-Powderhorn avatar Oct 12 '24 03:10 Ryu-Powderhorn