cssert
cssert copied to clipboard
Multiple assertions with the same HTML
Hi Simon, I started using this tool. I would like to fork and edit it to allow more than one assertion per test. Better, instead of the technique that u used here, https://github.com/thingsinjars/cssert/blob/master/test-runners/twitter-bootstrap-container.html, I would like to load the HTML just one time, but run more than tests.
Any suggestions before doing it?
Ty, Fabio.
Good idea. Off the top of my head, I'd say it should be fairly straightforward by modifying the parseTests function. That is intended to read multiple test cases from a single file but it could be changed to read the HTML just once and the expectations multiple times.
Ty, I'll try it in few days.