Answer the question
In order to leave comments, you need to log in
Are there unit tests to test html code?
Good afternoon, dear web gurus. Tell me, please, are there any analogues of unit testing for site markup? it is clear that there are all sorts of validators, but they only check for compliance with common html standards. but how to create tests that would check the html code I can’t find anything
Answer the question
In order to leave comments, you need to log in
Recently there was an article on Habré habrahabr.ru/post/272213
One of the most popular methods is this , there is another option
There is such a thing as Acceptance Testing. To check the performance of the product in general and HTML markup in particular, I recommend codeception
phpunit has a built-in http client where you can access the content of the DOM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question