Skip to content

Instantly share code, notes, and snippets.

@hanneskaeufler
Created April 8, 2018 10:36
Show Gist options
  • Save hanneskaeufler/151562663b5d7d296fcc143ec545e3ff to your computer and use it in GitHub Desktop.
Save hanneskaeufler/151562663b5d7d296fcc143ec545e3ff to your computer and use it in GitHub Desktop.
Setup DB for visual testing
# Create and migrate a new database just for visual regression testing
LUCKY_ENV=visual_test lucky db.create && lucky db.migrate
# Add one sample post
open http://localhost:5000/posts/new
# Run the local server with that one sample post
LUCKY_ENV=visual_test lucky dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment