Hacker News new | past | comments | ask | show | jobs | submit login

Disagreed. Any sufficiently complex app will have mutation dependent tests regardless of where that complexity is stored, models/services/controllers?!/views!?

The point is you want to "replay" all mutations in each test. i.e. TestA requires Mut1, Mut2, Mut3 .... just so happens TestB also requires the same mutations.

What this function is trying to say is - Don't make TestB depend on running after TestA because TestA "set up your world" for you and it was "easier/faster/less-work" to depend on that one.

Run Mut1, Mut2, Mut3 for TestB independently. Yes, it doubles the time because you're performing the same mutations, but maybe it makes sense.

The question becomes, should TestA and TestB be part of the same actual test? OR are they sufficiently different that it just makes sense to eat the double setup time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: