Skip to content

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