DalgoT4D / dalgo-admin-old

Administrative web console for Dalgo
GNU Affero General Public License v3.0
4 stars 11 forks source link

Set up test suites using pytest #11

Open fatchat opened 11 months ago

SrijanShovit commented 9 months ago

Hi @fatchat Anything to be done under this issue of currently? I would like to get started into this project with this issue. Going to explore this project!!

fatchat commented 9 months ago

hi @SrijanShovit

yes please, would you see what you can set up? i want two types of tests:

  1. test individual python functions which "do something" i.e. not the routes and the views, but the controller logic. there isn't much right now but it will come and i want developers to be able to write tests in a certain format and the test suite picks them up automatically

  2. test that the UI renders the components we expect it to. so if a view is passed a username (for example), and we have written html to display it within an <h3> tag, then i'd like to have a test which verifies that.

i don't know whether pytest can do (2) so you might have to do some research

SrijanShovit commented 9 months ago

@fatchat I think Selenium can be used for 2nd one; still I'll do my research a bit!!