sr_test_framework

sr_test_framework JS library on GitHub sr_test_framework JS library on npm Download sr_test_framework JS library

testing framework used when testing typescript code

Version 1.0.24 License ISC
sr_test_framework has no homepage
sr_test_framework JS library on GitHub
sr_test_framework JS library on npm
Download sr_test_framework JS library

typescript testing framework

interfaces

  • iTestResultItem
export interface iTestResultItem
{
  expected?: string,
  actual?: string,
  category?: string,
  method?: string,
  aspect?: string,
  desc?: string
}

tester methods

  • testResults_consoleLog( iTestResultItem[] )

  • testResults_append( iTestResultItem[], passText, failText, method )

    • method argument can be object with method and aspect properties.
  • testResults_append( results, { expected, results, method, aspect, desc, didFail })

  • iTestResultItem[] = testResults_new( )

publish instructions

  • increment version number in package.json
  • npm run build
  • npm run test
  • git add, commit, push to repo
  • npm publish
  • npm update in projects which use this package

testing

  • npm run test
  • or press F5, run task "run tester"