/
Chaos Testing

Chaos Testing

Useful info

https://www.reddit.com/r/rust/comments/xv55pq/rocket_how_to_clean_database_between_tests/

https://rocket.rs/v0.5-rc/guide/testing/

https://wtjungle.com/blog/integration-testing-rocket-sqlx/

https://docs.rs/diesel_pg_tester/latest/diesel_pg_tester/

https://rocket.rs/v0.3/guide/fairings/

https://api.rocket.rs/master/rocket/fairing/trait.Fairing.html

https://api.rocket.rs/master/rocket_sync_db_pools/index.html

 

Guard is used for validation Ig.

Planning (27/08/23)



  • write test for every route.

    • Prioritise applicant side routes first.

      • /campaign/new

      • /role/get_questions

      • /role/get_applications

      • /application/*

      • /question/*

 

We need a seeding script to populate DB with super user so we can create campaigns

We need a testing database

We need to change the main function.

Related content