I'll often make changes to my init.el and find that after I M-x load-file, the results can be different next time I open emacs. Or maybe while one thing I modified gets better, something else gets clobbered and I want to revert. However, I may have assumed everything was fine and piled many init.el changes on top since then.
So, I'd like to run tests on the effects of changes before I finalize them.
Can I run a test suite in my .emacs.d/init.el or is that insane? Is there even a way to do that, like to test that opening files in python-mode or rust-mode works consistently after changes? How do emacsers usually handle the development process of testing packages while keeping the good things nailed down?