Skip to content

dpum/java-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Boilerplate for Java

Sometimes there are benefits on writing unit tests for your solutions both while training and in competition setups. One of the goals of this repository is to simplify that process.

In order to do so, hereby is provided a class that enables the automatic execution and debugging of your code using test cases provided in text files.

Quick Start

  1. Make sure that you have Java JDK 9 or above installed.
  2. Setup your JDK in your IntelliJ. (Ctrl+Alt+Shift+S)
  3. Create Test Cases:
    1. Test cases start at 0 because we are real programmers.
    2. Each test case should have an input file (with .in extension) and the expected output in another file (with .out extension) in the same folder as the main class.
    3. Then update the config.properties file with the number of test cases and the main class settings.
  4. Run the TestExecutor.main function using the IDE. If it fails it will output where it did fail.

Debugging

If it fails in the tests you can put breakpoints in your main class and run the tests again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages