Fantômas contre Fantômas
This release adds a completely new use case to phantomas - web performance monitoring.
Using a simple "asserts framework" you can specify maximum values for metrics (#108). After setting up asserts, you can render results of phantomas run using TAP format (#94 and #127). And then plug them into Continous Integration system of your choice (e.g. Jenkins) or use simple command-line program to report metrics not meeting the limits.
Support for JUnit format is planned for the upcoming releases - #93.
Two experimental feature were added:
- passing
--film-strip
option will create a serie of screenshots when page is being loaded (#89). onDOMReadyEnd
andwindowOnLoadTimeEnd
metrics were added (#88). They report when handling of onDOMReady and windowOnLoad events is completed.
Oh, one more thing. You can provide --disable-js
and see how faster your site loads with JavaScript disabled (#115). And what needs to be improved in your JS code ;)
New metrics
- #88 - Add onDOMReadyEnd and windowOnLoadTimeEnd metrics
Improvements
- #89 - Register film strip when page is loading
- #94 and #127 - Add TAP format with details using YAMLish format
- #107 - Reporting jsErrors backtrace for format json and plain
- #108 - Introduce "metrics asserts"
- #115 - Make it possible to disable JavaScript on the page
- #120 - Simple phantomas asserts runner
Bug fixes
- #105 - "False error" when running performance on a site without jQuery?
- #117 -
onDOMReadyTime
andwindowOnLoadTime
should be calculated relative to the first response being received - #122 - Requests to blocked domains are included in stats
Internals
- #113 - Introduce formatters interface