Skip to content

brndel/ocd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCD - OfflineCodeTester

An offline alternative to SimpleCodeTester for everyone who is too afraid to write an E-Mail.

Rust > Java

SimpleCodeTester is written in Java hence being very slow. OfflineCodeTester is written in Rust hence being very fast.

Running

Building

To run ocd you first need to build it using cargo build --release.

You can alternatively download linux binaries here

Config

When you run ocd, it looks for a file called ocd.toml in the current directory.

ocd.toml should contain the following information

class_path = "path/to/your/java/root" # For an intellij project this should be "out/production/<your-project-name>"
main_class = "path.to.your.Main"

[interaction]
path = "path/to/your/interactions" # Path to the folder containing your interactions
pattern = [ ".*\\.txt" ] # An array of Regex patterns a filename needs to fully match to be considered an interaction file. Optional

[runner] # Optional
thread_count = 4 # The amount of interactions to run in parallel. Optional
timeout = 1000 # How long (in milliseconds) ocd should wait for your java programm to respond. Optional

The default values of all optional fields are the ones defined here

To run ocd for your project, add a ocd.toml file to the source directory and run ocd through a terminal.

ocd will recursively look for all files in the specified interaction folder matching the given pattern and test your programm with them.

Known issues

  • Running on Windows? (didn't test it there, would be strange if everything worked out of the box)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages