1.2.2 • Published 4 years ago
intest v1.2.2
Intest Testing Framework
Keywords
- inline testing
- clean test strategy
- immediate testing
- extreme testing
- test first approach
- quick test
- progressive test
- test and run together.
- monitor unit testing during ABC testing
Install
https://www.npmjs.com/package/intest
npm install intest
Installation Note
Allways install the latest version of the tool
IMPORTANT
Method/Function must get only one parameter! Please see the samples below.
Example
import { intestMethod, intestFunction, config} from 'intest';
if(process.env.production){
// if production, disable the test execution.
config.active =false;
}
class A {
// for class methods
@intestMethod({
testData:[
// testcase 1
{ input:$input, output:$output,mustStop:true},
// testcase 2
{ input: $input,output:$output, skip:true, mustStop:false }
]
})
methodA(input:IInput){
return ...
}
}
//(No annotation!) for functions
intestFunction('functionName', {
testData:[
// testcase 1
{ input:$input, output:$output,mustStop:true},
// testcase 2
{ input: $input,output:$output, skip:true, mustStop:false }
],
func:functionName
})
function functionName(input:any){
return ...
}