by kentwistle · 12y ago · 0 comments
You know what could increase the speed dramatically.... decoupling.
I also think decoupling phrased in the context of the Rails 2 to Rails 3 upgrade, where pretty much everything changed, makes perfect sense. Imagine just having a few wrapper classes that spoke to Rails and only having to adapt them. Sounds good to me!
Bernhardt: Boundaries http://www.confreaks.com/videos/1314-rubyconf2012-boundaries
Weirich: Decoupling from Rails http://www.youtube.com/watch?v=tg5RFeSfBM4
Wynne: Hexagonal Rails http://www.youtube.com/watch?v=CGN4RFkhH2M
Also, did you read the rest of the post? Typical test cycles are much faster than that. But a full test of the entire system takes some time. As it should.
This is also why the test suite for git takes a long time, but has a very good signal to noise ratio.
If only that "unnecessary code" had tests... Oh wait.
Not to mention you have increased the workload of everyone just to mitigate the impact of additional code. Let me know how that works out for you. :)
I don't really mind if a given branch is marked red on CircleCI. master must always be green, but a branch, not so much.
Say I change a model. I'll probably run the unit test for that model (4 seconds), then just push up the branch and forget about it. 9 times out of ten, I didn't break any other tests and everything's fine. Once in a while, I did, and 3-4 minutes later Circle via HipChat let's me know I need to check it again.
It's a bit meta, but this process is just like actual Rails apps—when the task can happen asynchronously in the background, it usually doesn't matter if it takes a couple minutes.
It differs very much across projects, full pouchdb test suite takes ~4 minutes, full firefox test suite takes hours, for rails ~4 minutes sounds entirely reasonable (kinda faster than I would expect) and wouldnt give me no reason to think about reducing the coverage and reliability of the tests by decoupling anything.
No.
He mentions per model, which is what you're doing while doing dev, it's 4 seconds.