/java-junit-pit

A simple Java project with JUnit and PIT support

Primary LanguageJava

A simple calculator Java project with JUnit and PITest support in Eclipse IDE

install java JDK

sudo apt install openjdk-17-jdk
sudo ln -sfn /usr/lib/jvm/java-1.17.0-openjdk-amd64 /usr/lib/jvm/java-in-use
nano ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/java-in-use
export PATH=$PATH:$JAVA_HOME/bin
source ~/.bashrc

install eclipse IDE

wget https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2023-03/R/eclipse-jee-2023-03-R-linux-gtk-x86_64.tar.gz -P /tmp
sudo tar xf /tmp/eclipse-*.tar.gz -C /opt
sudo ln -sf /opt/eclipse/eclipse /usr/bin/eclipse
ls -ld /usr/bin/eclipse
which eclipse

update eclipse IDE

Help > Check for Updates > Install Updates > Agree > Trust > Reload
Help > Eclipse Marketplace… > Installed

install pitclipse

http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1426461

run test cases

at Eclipse >> RIGHT CLICK at Project >> Run As >> JUnit Test

run mutation test

at Eclipse >> RIGHT CLICK at Project >> Run As >> PIT Mutation Test

How to setup and guide about this material

Thank you!