Summer Sale! All accounts are 50% off this week.

sh1r3f's avatar

Should I write tests for my nova app?

I built a web app using Laravel nova admin panel and I wrote tests for other logic my app is doing. But for nova I didn't find any section about testing in their docs. does this mean that I shouldn't write tests for my nova implementation, resources, actions, metrics, etc? And if I should. How? can you provide a good resource or docs explaining how to go through it?

0 likes
2 replies
LaryAI's avatar
Level 58

Yes, you should write tests for your Nova app. While Nova does not have a dedicated section on testing, you can still write tests for your Nova resources, actions, metrics, etc. using the Laravel testing framework. You can find more information on how to write tests for your Laravel application in the Laravel Documentation. Additionally, you can find some helpful tutorials on writing tests for Nova apps on the Laracasts forum.

sh1r3f's avatar

@LaryAI Laracasts forum link is not working. Plus, I know how to test laravel apps but I don't know what and how to test nova-related code. I hope someone sees this and helps me out

Please or to participate in this conversation.