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

Tests needs to be added backend #243

Open
indpurvesh opened this issue Sep 27, 2024 · 4 comments
Open

Tests needs to be added backend #243

indpurvesh opened this issue Sep 27, 2024 · 4 comments

Comments

@indpurvesh
Copy link
Member

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.

@Ryu-Powderhorn
Copy link

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?

@indpurvesh
Copy link
Member Author

@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
Copy link
Member Author

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.

@Ryu-Powderhorn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants