SCT tester was created in my 1st grade at Univerity of Ljubljana Faculty of Computer and Information Science to help me test java programs.
Requirements:
- Java JDK
- mono framework (on Mac and linux)
Install:
- Download
.vsix
file from here. - Go to Visual Studio Code and navigate to debug tab in sidebar.
- On right upper corner of extension tab press
...
. - Choose
Install from VSIX ...
option and select downloaded file. - Enjoy using this plugin (see usage).
This plugin enables you to easily test java programs using tj.exe program and it also creates results folder for you and clean after you.
Usage:
- Ctrl + Shift + p
- type >tj
- press enter
- select terminal where you want to run command
tj.exe
program for testing, can be in following places:- anywhere - Program can be anywhere, but then it must be imported in settings (
tj_path
) - in folder beside .java file - Program doesn't need to be imported
- anywhere - Program can be anywhere, but then it must be imported in settings (
Structure of file/directory names:
- Program:
<name>.java
- Test directory: must start with
<name>_test
- Results directory:
<name>_results
(will be automaticly created)
This extension contributes the following settings:
sct_tester.tj_path
: path to tj.exe (global program, it is overriden by local tj.exe if exists)sct_tester.tj_args
: additional args to run tj.exe withsct_tester.clearoldresults
: clear old results if presentsct_tester.autoopenresults
: automaticly opens results html file in web browser when tests are finished (only windows)
Or you can override global settings with specific settings for directory with .tconfig
file:
{
"tj_path": "",
"tj_args": "",
"clearoldresults": true,
"autoopenresults": false
}
1.0.0
- Not working when results directory doesn't exist
See CHANGELOG.md