By reference to the local files
Integrity can check your website locally. This will only work for static sites, anything managed by a content management system will obviously need to be hosted on a web server to work.
Type the path of your file into the New site dialog or select File > Open...
Since version 12, App Store and web download versions of Integrity are both sandboxed (which Apple makes mandatory for the App Store) and this means that by default they cannot access any file on your system except those in its own container and any files that you choose via a file dialog.
In order to give the system your permission for Integrity to access your files, you must go to File > Bookmark Security Scoped Resource.
This will open up a file dialog so that you can choose the folder that encloses your website. When you 'OK' that dialog, Integrity will 'bookmark' that folder, or create a record that you have chosen that folder and Integrity will have access to the files within that folder. You should only have to do this once per local website.
Note that
- The status displayed for the internal links isn't the same as a server response code, because there's no server
- If you have an internal link which is actually a directory without a filename on the end, then Integrity will use the filename specified in Preferences - 'index.html' by default.
Alternatively you can use the local web server
This is a better solution. The advantages of this method are that it will follow directory references correctly, eg peacockmedia.co.uk/integrity (where the file is actually peacockmedia.co.uk/integrity/index.html), and give you proper server responses, rather than just testing whether the file exists.
You will need to switch on web sharing.
Since 10.8 (Mountain Lion) you still have the Apache web server within the system but the ability to switch it on easily has been removed. Type the following into Terminal to start the web server:
sudo apachectl start
You will now be able to access websites at the root of your HD. http://localhost/Website is actually /Library/WebServer/Documents/Website
In order to access websites in your home folder's Sites folder, you'll need to set up a config file - details are here