cssert icon indicating copy to clipboard operation
cssert copied to clipboard

Multiple assertions with the same HTML

Open fabiofabbrucci opened this issue 11 years ago • 2 comments

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.

fabiofabbrucci avatar Sep 05 '13 12:09 fabiofabbrucci

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.

thingsinjars avatar Sep 05 '13 12:09 thingsinjars

Ty, I'll try it in few days.

fabiofabbrucci avatar Sep 05 '13 12:09 fabiofabbrucci