To use this code, follow these steps:
Open a terminal and navigate to the root directory of your project. Use the javac
command to compile all Java files in
the src/main/java/
directory:
javac -d out src/main/java/*.java
Use the java command to run your Application class and pass the necessary arguments.
When uploading a single file, the output path is directly utilized. The resulting file inherits the name of the output path, supplemented with either a .csv or .md extension.
java -cp out Application src/main/resources/aufgaben1.csv src/main/resources/Output/aufgaben1 csv both
You also have the option to upload multiple files at once by specifying a directory.
The generated filenames are based on the input names, so please ensure that you provide a directory
(Note: The directory path must end with "/"
).
java -cp out Application src/main/resources/exercises src/main/resources/Output/ csv both
Here’s a breakdown of the command-line arguments:
src/main/resources/aufgaben1.csv
: Path to the input CSV or Markdown file. Feel free to specify a different directory if needed.src/main/resources/Output/aufgaben1
: Base path for the output files. You can specify any other directory as well.csv
ormd
: Output file format (CSV or Markdown).- method: A string indicating which coverage criteria to use:
both
: Use both MMBUE (Minimal Determining Multiple Condition Cover / Minimal bestimmende Mehrfachbedingungsüberdeckung) and MCDC (Modified Condition / Decision Coverage).mcdc
: Use only MCDC.mmbue
: Use only MMBUE.
- Output Files: The output files will be exported to the specified directory. There you can see the results.