Newman Open HTML Reports
Quick one-liner to open the most recently generated Newman HTML report in your default browser on macOS.
This command finds the most recently created file in the newman/ directory (sorted by modification time), resolves its full path using greadlink, and opens it in your default browser. This is handy after running a Newman test suite with the htmlextra reporter to quickly view results.
1
open "$(greadlink -f "$(ls -tr newman/* | tail -n 1 )")"
This post is licensed under CC BY 4.0 by the author.