You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we have a large set of static fixtures, which drags down our testing performance. Lets switch to single-shot dynamic fixtures, on some of our larger projects we have classes that setup fixtures dynamically and allow us to do stuff like this:
mocked_jekyll.with_base.write"index.md",<<-DATA Bad DataDATAmocked_jekyll.buildexpect(mocked_jekyll.whatever).toeq"this"
You can chain after chain after chain to create a context for your test. This will speed up Jekyll slightly because now we aren't constantly processing large amounts of data, each fixture is guaranteed to be fresh, all testing context is inside of the test and it's easy to see what exactly we are testing.
The text was updated successfully, but these errors were encountered:
Right now we have a large set of static fixtures, which drags down our testing performance. Lets switch to single-shot dynamic fixtures, on some of our larger projects we have classes that setup fixtures dynamically and allow us to do stuff like this:
You can chain after chain after chain to create a context for your test. This will speed up Jekyll slightly because now we aren't constantly processing large amounts of data, each fixture is guaranteed to be fresh, all testing context is inside of the test and it's easy to see what exactly we are testing.
The text was updated successfully, but these errors were encountered: