suicidesafetyplan / safetyplan-ios

Suicide Safety Plan is a free mobile application for suicide prevention.
MIT License
23 stars 10 forks source link

Lay foundation for screenshot-taking via tests #43

Closed danispringer closed 8 months ago

danispringer commented 9 months ago

With these changes, you should be able to:

  1. cd to the project folder
  2. Run ./SafetyPlanScreenshots/screenshots.sh

And the script will automatically generate screenshots for all needed devices. As of now the only screenshot programmed in the tests is the homepage of the app. NOTE: in the screenshots.sh file, change the path to your Desktop path (/Users/YOURNAME/Desktop) NOTE: you can add and change the done tests in the SafetyPlanScreenshots.swift file NOTE: use SimulatorStatusMagic to clean the status bar before taking screenshots: https://github.com/shinydevelopment/SimulatorStatusMagic (note the drastic changes in how to use that project starting with iOS 17)

danispringer commented 8 months ago

@eddielement hey, ever had a chance to take a look at this? Thanks

EDIT: Please note the paths in screenshots.sh currently are hardcoded to my username. Simply change it to yours when using this script. I tried replacing my username with a more adapting ~/ but it did not work for some reason...

eddielement commented 8 months ago

@danispringer Oops, I missed this! Thanks for the note.