We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Repeatable Output during Dev Testing

Development and Programming

onno@itmaze.com.au's avatar
[email protected]
7 posts
8 years ago
onno@itmaze.com.au's avatar [email protected]

For testing I am creating a framework that crawls an entire EE site, stores the URLs and then creates an MD5 hash for each URL.

I intend to use this so I can make simple changes and have instant view of what the effects were across the whole site.

After doing two runs with no changes, it transpires that EE is producing different output for each run. For example, a banner may be produced in a different order, or an email address encrypted with a different salt, which changes the underlying HTML.

This means that the MD5 sums will never match and I won’t get a repeatable view of what changes between code updates.

Is there a way that I can force EE to always use the same “random” choices, so I can make the output consistent between test runs? Even non-randomness is fine in this context.

The test environment is all local within Docker containers which gives me a high level of control.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.