Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple assertions with the same HTML #1

Open
fabiofabbrucci opened this issue Sep 5, 2013 · 2 comments
Open

Multiple assertions with the same HTML #1

fabiofabbrucci opened this issue Sep 5, 2013 · 2 comments

Comments

@fabiofabbrucci
Copy link

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.

@thingsinjars
Copy link
Owner

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.

@fabiofabbrucci
Copy link
Author

Ty, I'll try it in few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants