@ts.adligo.org/tests4j
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

tests4j.ts.adligo.org

A small portion of the Tests4j code implemented in Typescript directly.

Install with npm as usual;

npm install @ts.adligo.org/tests4j --save-dev

Import Into Your Code

import {ApiTrial, AssertionContext, Test, TrialSuite} from '@ts.adligo.org/tests4j'

Note the convention is a tests project with slinks, but can be anywhere.

Write your first TrialSuite, ApiTrial and Test

console.log('starting tests');
new TrialSuite('Your TrialSuite Name',[
  new ApiTrial('Your ApiTrial Name', [
    new Test('testSomething',(ac) => {
      console.log('in testSomething');    
      as.isTrue(false,'This should be True!');  
    })
  ])
]).run();
console.log('tests finished');

Test this Project, Compile and Deploy;

Run the local tests

 npm run test

Run the TypeScript Compile (creates a bin and dist folder)

 npm run tsc

Deploy

This command deploys, after you have logged in to https://registry.npmjs.org/;

npm publish --access public

Readme

Keywords

none

Package Sidebar

Install

npm i @ts.adligo.org/tests4j

Weekly Downloads

0

Version

0.2.6

License

none

Unpacked Size

35.7 kB

Total Files

11

Last publish

Collaborators

  • adligo