1.2.2 • Published 5 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 intestInstallation 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 ...
}