VoltScript Testing Framework is a framework for testing code written using VoltScript, the evolution of LotusScript delivered as part of HCL Volt MX Go. The framework can also be used for LotusScript, with modifications (see below on new language functions used). There are deliberately no dependencies on any LSXs (e.g nlsxbe.dll). None should be added, it will make it dependent on a particular implementation. Create separate classes derived from CustomTester to test individual LSXs or custom classes.
Dependency management is available in the documentation for each project, but also aggregated here:
You'll need a Personal Access Token to use GitHub REST APIs. You'll then need to add this to the JSON object in your atlas-settings.json, in the .vss directory of your user home directory:
"hcl-github": {
"type": "github",
"token": "${env.TOKEN}"
}
You'll need to add to your repositories object in the atlas.json of your project:
{
"id": "hcl-github",
"type": "github",
"url": "https://api.github.com/repos/HCL-TECH-SOFTWARE"
}
You'll need the relevant dependency to add to your dependencies or testDependencies object in the atlas.json of your project:
{
"library": "voltscript-testing",
"version": "1.0.1",
"module": "VoltScriptTesting.vss",
"repository": "hcl-github"
}
See Writing Units Tests.
Obviously the code runs certain core language functions. These are documented in Core Functions.
There are three new VoltScript language functions used - Try/Catch/Finally and GetThreadInfo(12) in TestRunner.vss and ++/-- in SampleBeforeAfterTester.vss.
See CONTRIBUTING.md.
## Code of Conduct
See CODE_OF_CONDUCT.md.
Let's chat on OpenNTF Discord.
For long-running discussions, use Discussions area in GitHub. For bugs and feature requests specific to VoltScript Testing Framework use, Issues area.