percy / percy-cli-ruby

[Deprecated] Command-line interface for Percy.
https://percy.io/docs/clients/ruby/cli
MIT License
19 stars 11 forks source link

Manual Percy Session #14

Open Zoramite opened 6 years ago

Zoramite commented 6 years ago

It would be nice to be able to combine different percy drivers into a single percy session.

For example, the ability to do this:

# Start a percy session.
# Writes a `.percy.session.token.something.file` or overwrites if 
# previous unfinished session exists.
percy start

# Run snapshot since I want a baseline on all the pages, but it is faster to do 
# a snapshot than using wdio to load each page. (2 min vs 10 min)
# Understands the session file and adds all screeshots to the open session.
# Does not finalize session.
percy snapshot --widths "412,1280" build/

# Runs the wdio tests that focus on specific functionality.
# Understands the session file and adds all screeshots to the open session.
# Does not finalize session.
wdio wdio.config.js

# Close and finalize the percy session.
# Also removes the percy session file.
percy finalize
timhaines commented 6 years ago

This would be pretty awesome Randy! 😀