The Cat that lives in CATTO is a skilled hunter: no test escapes his lasso!
If you have any questions that are beyond the scope of this guide, Please feel free to email dario.amorosodaragona@tuni.fi.
A tool for Test Case Optimization. CATTO selects the tests to execute based on the changes performed in the code between two commits. When the user commits the project CATTO analyzes the source code and identifies the change between the version of the project that the user is committing and the version of the project at the previous commit. CATTO identifies and uses these informations to select and execute the tests that cover these changes.
To use CATTO you need:
We are working to upgrade our tool. Soon wiil be possible to use CATTO on every Java project
Follow the steps below to setup the CATTO plugin:
config.yaml
#defines the absolute output path of the built project (the place where Intellij saves the .class files), #please for each line specify the production path and the test path. You can easily find this path in the project settings. outputPath: - /Users/ncdaam/IdeaProjects/demo/out/production/demo - /Users/ncdaam/IdeaProjects/demo/out/test/demo #CATTO to work needs JAVA 1.8 installed. Please put here, one per line, the absolute path of the jce.jar and rt.jar #contained in the JAVA 1.8 installation folder. #Then insert also the absolute path of the folder that contains the external libraries used in your project. dependencies: - /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jce.jar - /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/jre/lib/rt.jar - /Users/ncdaam/IdeaProjects/demo/lib #this is a relative path of a temporary folder. the default value is ".tmp". tempFolderPath: .tmp
The CATTO project is composed by two components:
A quick demo on how CATTO can upgrade your programming workflow!