{"id":17114629,"url":"https://github.com/webmatze/mickrigtest","last_synced_at":"2026-05-08T08:08:27.277Z","repository":{"id":7552965,"uuid":"8906043","full_name":"webmatze/mickrigtest","owner":"webmatze","description":"a minimal testing framework for JavaScript written in CoffeeScript","archived":false,"fork":false,"pushed_at":"2017-02-24T16:06:08.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T22:06:22.188Z","etag":null,"topics":["coffeescript","javascript","npm-package","test-framework","testing","testsuite"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webmatze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-20T14:23:39.000Z","updated_at":"2017-02-27T11:02:05.000Z","dependencies_parsed_at":"2022-09-07T12:01:13.560Z","dependency_job_id":null,"html_url":"https://github.com/webmatze/mickrigtest","commit_stats":null,"previous_names":["webmatze/mickrigtest-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fmickrigtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fmickrigtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fmickrigtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmatze%2Fmickrigtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmatze","download_url":"https://codeload.github.com/webmatze/mickrigtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186924,"owners_count":20574553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coffeescript","javascript","npm-package","test-framework","testing","testsuite"],"created_at":"2024-10-14T17:19:32.770Z","updated_at":"2026-05-08T08:08:22.210Z","avatar_url":"https://github.com/webmatze.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"mickrigtest [![NPM version](https://img.shields.io/npm/v/mickrigtest.svg?style=flat)](https://npmjs.com/package/mickrigtest) [![NPM downloads](https://img.shields.io/npm/dm/mickrigtest.svg?style=flat)](https://npmjs.com/package/mickrigtest) [![Coverage Status](https://coveralls.io/repos/github/webmatze/mickrigtest/badge.svg?branch=master)](https://coveralls.io/github/webmatze/mickrigtest?branch=master)\n==============\n\n\u003e a minimal testing framework for JavaScript written in CoffeeScript\n\nInstalling via npm\n------------------\n\n    npm install -g mickrigtest\n\n\nCompiling the CoffeeScript\n--------------------------\n\nUsing coffee cli:\n\n    coffee -cb mickrigtest.coffee\n\nOr using a npm task:\n\n    npm run compile\n\n\nRunning Tests\n-------------\n\n    npm run test\n\n\nUsage of mickrigtest\n-----------------------\n\nrequire expect from mickrigtest:\n\n    var expect = require('mickrigtest').expect\n\nThen you can test something to be true:\n\n    expect(true).to().beTrue()\n\nOr alternatively:\n\n    expect(true).to().be(true)\n\nYou can also test something to be false:\n\n    expect(false).to().beFalse()\n\nOr alternatively:\n\n    expect(false).to().be(false)\n\nYou can test something NOT to be something:\n\n    expect(false).notTo().beTrue()\n\nAnd you can also add a description to your test:\n\n    expect(1 \u003e 2, '1 \u003e 2').to().beFalse()\n    \nYou can test for exceptions. But you have to wrap your code into an anonymous function:\n\n    expect(function() {\n        throw \"an exception\"\n    }).to().throwException()\n    \nUsage of MickrigTestCase\n------------------------\n\nYou can also build test cases by using the **MickrigTestCase** class.\nTo use it you have to require it from *mickrigtest*, too.\n\n    var MickrigTestCase = require('mickrigtest').MickrigTestCase\n\nThen you can write your first test case:\n\n    testcase = new MickrigTestCase(\"My first test\");\n    testcase.test(\"true should be true\", function() {\n        expect(true).to().beTrue();\n    });\n    testcase.test(\"true should not be false\", function() {\n        expect(true).notTo().be(false);\n    });\n    messages = testcase.run();\n\nThe *run()* function of **MickrigTestCase** returns an Array of all messages generated by the test case.\nYou can use this Array to display the messages on your page or displaying them using *console.log()*.\n    \n    messages.forEach(function(m){console.log(m)})\n\nCopyright\n---------\n\nCopyright 2013-2017 by Mathias Karstädt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmatze%2Fmickrigtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmatze%2Fmickrigtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmatze%2Fmickrigtest/lists"}