CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-karma-qunit

A Karma plugin that provides an adapter for the QUnit testing framework, enabling seamless integration between Karma test runner and QUnit test suites.

92

0.97x
Quality

Pending

Does it follow best practices?

Impact

92%

0.97x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses karma-qunit's plugin registration and framework integration patterns. The focus is on proper use of Karma's factory pattern, dependency injection, and file pattern configuration as exemplified by karma-qunit.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Plugin Registration Format",
      "description": "Uses the correct plugin registration format with 'framework:' prefix as a key in the module.exports object, following karma-qunit's pattern of exporting an object like {'framework:qunit': [...]}",
      "max_score": 20
    },
    {
      "name": "Factory Pattern Usage",
      "description": "Implements the factory pattern correctly by exporting an array with ['factory', initFunction] as the value for the framework key, matching karma-qunit's ['factory', initQUnit] pattern",
      "max_score": 25
    },
    {
      "name": "Dependency Injection",
      "description": "Properly configures dependency injection by setting the $inject property on the initialization function to ['config.files'], following karma-qunit's initQUnit.$inject pattern",
      "max_score": 20
    },
    {
      "name": "File Pattern Creation",
      "description": "Creates file pattern objects with the correct structure including pattern, included, served, and watched properties, similar to karma-qunit's createPattern function implementation",
      "max_score": 20
    },
    {
      "name": "File Array Modification",
      "description": "Correctly modifies the Karma files array by adding file pattern objects to it, following karma-qunit's approach of injecting framework files into the files array",
      "max_score": 15
    }
  ]
}

tile.json