4 ms·
I wonder if they considered using something like ptrace to track which .rb files a given test suite loads? This would probably be orders of magnitude faster th
by jwalton 6y ago
I wonder if they considered using something like ptrace to track which .rb files a given test suite loads? This would probably be orders of magnitude faster than Rotoscope or Tracepoint. You'd get a much "coarser" data set, since you wouldn't know which individual tests called which modules (unless you run each test case in it's own Ruby runtime). On the upside, you'd be able to watch JSON and YAML files.
- byroot 6y ago> I wonder if they considered using something like ptrace to track which .rb files a given test suite loads? It's not really possible as we eager load the entire application on CI. And even if we didn't to trace depedencies like this we'd need to boot the application in lazy load mode for each test suite, that alone would be slower than running the entire test suite.