{"id":13577500,"url":"https://github.com/legovaer/jsonnunit","last_synced_at":"2025-04-03T11:42:52.601Z","repository":{"id":46817085,"uuid":"344403875","full_name":"legovaer/jsonnunit","owner":"legovaer","description":"🚦 a BDD assertion style unit testing framework for JSONNET through an 'expect' interface","archived":false,"fork":false,"pushed_at":"2021-10-18T23:14:05.000Z","size":1185,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T12:17:47.666Z","etag":null,"topics":["assertion","bdd","jsonnet","jsonnunit","oclif","tdd","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/legovaer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-04T08:32:23.000Z","updated_at":"2022-01-14T20:38:00.000Z","dependencies_parsed_at":"2022-09-26T18:20:44.348Z","dependency_job_id":null,"html_url":"https://github.com/legovaer/jsonnunit","commit_stats":null,"previous_names":["scalecity/jsonnunit"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legovaer%2Fjsonnunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legovaer%2Fjsonnunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legovaer%2Fjsonnunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legovaer%2Fjsonnunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/legovaer","download_url":"https://codeload.github.com/legovaer/jsonnunit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998135,"owners_count":20866690,"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":["assertion","bdd","jsonnet","jsonnunit","oclif","tdd","testing"],"created_at":"2024-08-01T15:01:21.967Z","updated_at":"2025-04-03T11:42:52.578Z","avatar_url":"https://github.com/legovaer.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/ScaleCity/jsonnunit/blob/main/docs/banner-jsonnunit.png?raw=true\" alt=\"The JSONNUNIT logo is a black circle with in the center the red plus logo of Jsonnet\" width=\"60%\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003ea BDD assertion style unit testing framework for JSONNET through an 'expect' interface\n\u003c/p\u003e\n\n\n[![Version](https://img.shields.io/npm/v/jsonnunit.svg)](https://npmjs.org/package/jsonnunit)\n[![codecov](https://codecov.io/gh/ScaleCity/jsonnunit/branch/main/graph/badge.svg?token=AAT99CII39)](https://codecov.io/gh/ScaleCity/jsonnunit)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FScaleCity%2Fjsonnunit.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FScaleCity%2Fjsonnunit?ref=badge_shield)\n[![CircleCI](https://img.shields.io/circleci/build/github/ScaleCity/jsonnunit?token=e0790970e8a7223a7e3631f47f361660c110cb8f)](https://circleci.com/gh/ScaleCity/jsonnunit)\n![License](https://img.shields.io/npm/l/jsonnunit.svg)\n\n\n\u003c!-- toc --\u003e\n* [🗒 Description](#-description)\n* [🚀 Getting Started](#-getting-started)\n* [✨ Features](#-features)\n* [📌 Requirements](#-requirements)\n* [Usage](#usage)\n* [Commands](#commands)\n\u003c!-- tocstop --\u003e\n\n# 🗒 Description\nJSONNUNIT is a BDD assertion style unit testing framework for\n[JSONNET](https://jsonnet.org/) through an 'expect' interface. Basically you\nchain together natural language assertions which makes testing much easier by\ngiving you lots of assertions you can run against your code.  This framework is\nbased on [Mocha](https://mochajs.org/): a simple, flexible, fun javascript test\nframework for node.js \u0026 the browser.\n\n# 🚀 Getting Started\nThe Getting Started tutorial is a step-by-step guide to introduce you to JSONNUNIT.\nIf you haven't developed any unit tests before, this tutorial is a great place to get started.\n\n# ✨ Features\n* **Sjsonnet support** - [Sjsonnet](https://github.com/databricks/sjsonnet) is a JVM implementation of the Jsonnet configuration language which speeds up the process of rendering large jsonnet structures.\n* **Based on MochaJS** - We didn't re-invent the wheel but reflected one of the best tools currently available for unit testing NodeJS apps. This framework is based on [Mocha](https://mochajs.org/): a simple, flexible, fun javascript test framework for node.js \u0026 the browser.\n* **Based on Chai** - We also took a lot of functionality from the [Chai Assertion Library](https://www.chaijs.com/). Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework. Implementing this functionality allows you to write human-readable unit tests for your jsonnet structures.\n\n# 📌 Requirements\nJSONNUNIT is written in [NodeJS](https://www.npmjs.com/package/node) and requires Node 8.5+. \n\n# Usage\n\u003c!-- usage --\u003e\n```sh-session\n$ npm install -g jsonnunit\n$ jsonnunit COMMAND\nrunning command...\n$ jsonnunit (-v|--version|version)\njsonnunit/1.4.0 darwin-x64 node-v15.11.0\n$ jsonnunit --help [COMMAND]\nUSAGE\n  $ jsonnunit COMMAND\n...\n```\n\u003c!-- usagestop --\u003e\n# Commands\n\u003c!-- commands --\u003e\n* [`jsonnunit help [COMMAND]`](#jsonnunit-help-command)\n* [`jsonnunit update [CHANNEL]`](#jsonnunit-update-channel)\n\n## `jsonnunit help [COMMAND]`\n\ndisplay help for jsonnunit\n\n```\nUSAGE\n  $ jsonnunit help [COMMAND]\n\nARGUMENTS\n  COMMAND  command to show help for\n\nOPTIONS\n  --all  see all commands in CLI\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_\n\n## `jsonnunit update [CHANNEL]`\n\nupdate the jsonnunit CLI\n\n```\nUSAGE\n  $ jsonnunit update [CHANNEL]\n```\n\n_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v1.3.10/src/commands/update.ts)_\n\u003c!-- commandsstop --\u003e\n\n## Contributing\n\nThank you very much considerting to contribute!\n\nPlease make sure you follow our Code Of Conduct and we also strongly recommend\nreading our Contributing Guide.\n\n## Contributors\n\nPlease see the full\n[Contributors Graph](https://github.com/scalecity/jsonnunit/graphs/contributors)\nfor our list of contributors.\n\n### Core Contributors\n\nFeel free to reach out to any of the core contributors with your questions or\nconcerns. We will do our best to respond in a timely manner.\n\n[![Levi Govaerts](https://avatars.githubusercontent.com/u/5813212?s=460\u0026u=d193f8f2d70dbbdd6df2d17b4ee5a275459ede4b\u0026v=4)](https://github.com/legovaer)\n\n### License\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FScaleCity%2Fjsonnunit.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FScaleCity%2Fjsonnunit?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegovaer%2Fjsonnunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegovaer%2Fjsonnunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegovaer%2Fjsonnunit/lists"}