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

Testing facilities upgrade #11

Merged
merged 7 commits into from
Dec 29, 2023
Merged

Testing facilities upgrade #11

merged 7 commits into from
Dec 29, 2023

Conversation

baktrius
Copy link
Owner

@baktrius baktrius commented Dec 26, 2023

Split test_on_public_repo into several smaller scripts:

  • import_assignment - imports solution from zip file (specified as first argument) into repository
  • test_assignment - test exported solution (zip file) inside given repository. First resets repository to known state, then imports given solution. At last runs tests with test.

@baktrius baktrius requested a review from wprzytula December 26, 2023 15:22
Comment on lines +5 to +15
if [ $# -ne 2 -o "$2" != "--force" ]
then
echo "Usage: ./test_assignment PATH_TO_EXPORTED_SOLUTION --force"
echo
echo "THIS SCRIPT WILL REMOVE ALL DATA FROM REPOSITORY - use with care!"
echo
echo "Zip file with solution has to be located outside of repository folder."
echo "This script assumes it is invoked from folder containing repository."
exit 1
fi

Copy link
Collaborator

Choose a reason for hiding this comment

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

I really like this change. Robustness is key to success!

@baktrius baktrius merged commit 65bf02a into main Dec 29, 2023
@baktrius baktrius deleted the testing-facilities-upgrade branch December 29, 2023 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants