0.2.6 • Published 3 years ago

@ts.adligo.org/tests4j v0.2.6

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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
0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago