DEV Community

Discussion on: Understand Django: Test Your Apps

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

That's a awesome introduction to factory_boy and pytest_django. It makes it easier for me on how to use it.

Quick question would you include selenium into the mix for testing as well and where would you use it for?

Cause I learnt about it when reading a few booking Django TDD so my goto choice has always been selenium & pytest.

Collapse
 
mblayman profile image
Matt Layman

I think Selenium is a fine choice, but I find that it's a lot of overhead. The vast majority of my projects don't really require that level of testing. I might reach for Selenium more if I was doing SPAs with React or something, but I prefer server side rendering so the Django test client suits my needs for most scenarios.