This is more of a guidance thing. Here's the general breakdown of my app:
- It has a backend with all the models
- It has an app for the API routing and the serializers/viewsets
- It has a frontend that takes care of the main routing (index, contact us, content, etc.) and serves the templates and the static components
- Part of the static components are mustache-js templates. When the user loads the page the client performs some ajax requests to the API and pulls in data, it then takes care of populating components.
I currently have tests for
- Backend models
- API behavior and methods
- Frontend paths actually loading
But how do I test the parts where it's mostly JS dependent? I've been using selenium to do this. Is this the right approach? It does seem awfully hacky.
Aucun commentaire:
Enregistrer un commentaire