πŸ’ Langoor

The 21st century javascript unit testing framework.

Features

🎁 One of the best visual rendering used.
πŸŽ„ Excellent error rendering.
πŸŽ€ Automatically searches for files ending with ".test.js" in your root folder.
πŸ•ΈοΈ Uses the "assert" package to check equality and other features.
πŸ‘ Config system with ignore and additional files features.

Demo

Demo

Installation

# with npm

npm install -g langoor

# or with yarn

yarn add langoor

File Usage

// PASS

test("should give 2 + 2 = 4", (assert) => {

  assert.equal(2 + 2, 4);

});


// FAIL

test("should give 2/2 = 1", (assert) => {

  assert.equal(2/1, 1);

});

Command Line Usage

# finding all files ending with ".test.js"

langoor

# adding additional files to the pre-existing files

langoor [file_path]

Config

All configurations are held in a file named 'langoor.config.js'.

module.exports = {

  additional: ["tests/3.js"], // Additional Files to add to the default ".test.js" files.

  ignore: [], // Ignored files and folder.

};

Custom Tests

test("a should not be undefined", () => {

  var a = undefined;

  if (a === undefined) throw new Error("a is undefined!!");

});

Langoor Logs

test("logs 'Langoor ROCKZZ!'", () => {

  console.langoor('Langoor ROCKZZ!');

});

Thank you for downloading Langoor.

Made with ❀️ by squik