| ▲ | locknitpicker 2 days ago | ||||||||||||||||
> All I mean that there is no way for a framework to prevent your tests from interfering with each other, or to solve isolation for you. What? By design that's exactly how virtually all test frameworks are designed to work. > It's the implementation of each test that is responsible for its isolation. Every time you write or make changes to your tests. You have to think, can they mess with each other. Nonsense. I've been writing unit tests for years in multiple programming languages and using multiple frameworks, and not once did I stumbled upon any scenario whatsoever where I had to be mindful about isolating tests. Because that was assured and a given from the very start. I wonder what kind of convoluted mess you are doing with your tests. | |||||||||||||||||
| ▲ | aleksiy123 2 days ago | parent [-] | ||||||||||||||||
You’ve never ever had to be mindful about isolation of tests? Also, Unit tests aren’t the only tests that exist. You say assured? You think it’s impossible to write 2 tests that interact each other? All you gotta do is google “test isolation”. But if you want to pretend it’s not a thing the I have no idea what to tell you? Here’s one example since junit came up | |||||||||||||||||
| |||||||||||||||||