Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regression testing #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add regression testing #51

wants to merge 3 commits into from

Conversation

pathawks
Copy link
Member

This provides a way of performing regression testing on generated sites.

If the base branch is built with DESTINATION_DIR="old" ./bench and the head branch is built with DESTINATION_DIR="new" ./bench, then one can run OLD="old" NEW="new" ./regression to see a diff of the two builds. If there are any differences, regression will exit with a non-zero status.

This is not yet automated. That might be a bit more work.

@pathawks pathawks added the enhancement New feature or request label Jul 17, 2018
regression Outdated
echo ""
SOURCE="$TMPDIR/$OLD/${SITE##*/}"
DESTINATION=${SOURCE/$OLD/$NEW}
diff -r $SOURCE $DESTINATION
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all that's needed to diff two files? Cool! 🙂

@pathawks
Copy link
Member Author

Anything that outputs a timestamp borks the diff 😓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants