You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integration tests without Zeus are very slow because we run each example
in a new process, which has to load all dependencies and frameworks –
like RSpec, SuperDiff, ActiveSupport, etc – from scratch.
Zeus improved on this, but has a client-server architecture and has been
proving somewhat difficult to use. If we instead load the dependencies
and then run RSpec in a new
[_forked_](https://man7.org/linux/man-pages/man2/fork.2.html)
subprocess, we don't have to reload anything loaded before fork time,
and don't have to use Zeus.
Light testing shows a ~5x speed-up over non-Zeus integration tests.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
13
13
- Switch from Prettier to Rubocop. [#269](https://github.com/splitwise/super_diff/pull/269)
14
14
- Fix outdated reference in documentation. [#270](https://github.com/splitwise/super_diff/pull/270) by [@emmanuel-ferdman](https://github.com/emmanuel-ferdman)
15
+
- Replace Zeus with forking strategy for tests. [#271](https://github.com/splitwise/super_diff/pull/271)
0 commit comments