Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rieckpil's full-sized avatar
🏝️
Working remotely

Philip Riecks rieckpil

🏝️
Working remotely
View GitHub Profile
@DarrenForsythe
DarrenForsythe / junit-5-migrator.sh
Created June 11, 2020 02:45
Junit 5 migration script
#!/bin/sh
FILE=pom.xml
if [[ -f "$FILE" ]]; then
echo "$FILE found. Running Junit conversion. Note this is not a complete movement script. You will need\
to do some manual tweaks to your code base"
#Move to the new Test Annotation
echo "Moving to Jupiter Test Annotation"
git grep -l 'org.junit.Test' | xargs sed -i '' -e 's/org.junit.Test/org.junit.jupiter.api.Test/g'
#Move to new Before Annotation
echo "Moving Before to BeforeEach"