karma-dart

A Karma plugin - adapter for Dart unittest testing framework.

dart unittest packageis deprecated; dartium is not a thing anymore
Last updated 5 years ago by zzo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install karma-dart 
SYNC missed versions from official npm registry.

karma-dart

js-standard-style npm version npm downloads

Build Status Dependency Status devDependency Status

Adapter for the Dart unittest testing framework.

For more information on Karma-runner see the homepage.

Getting Started

You'll need node.js: http://nodejs.org/download/

Install karma and karma-dart adapter npms:

$ npm install karma-dart

Refer to npm install documentation for more details and install options.

and you'll need the following dependencies in your pubspec.yaml

unittest: any
browser: any

The following is an example of karma config.

module.exports = function(config) {
  config.set({
    basePath: '.',
    frameworks: ['dart-unittest'],

    // list of files / patterns to load in the browser
    // all tests must be 'included', but all other libraries must be 'served' and
    // optionally 'watched' only.
    files: [
      'test/*.dart',
      {pattern: '**/*.dart', watched: true, included: false, served: true},
      'packages/browser/dart.js',
      'packages/browser/interop.js'
    ],

    autoWatch: true,

    // If browser does not capture in given timeout [ms], kill it
    captureTimeout: 5000,

    plugins: [
      'karma-dart'
    ]
  });
};

You can run karma from the local folder:

$ node node_modules/karma/bin/karma start karma-dart.conf

or if you installed it with -g flag just

$ karma start karma-dart.conf

Then just open http://localhost:9876/ in Dartium.

Known Limitations/Issues

  • Missing Dartium launcher.
  • Each test file must be a library -- due to the nature of the test runner, this is required.

Current Tags

  • 0.3.0-rc.0                                ...           canary (5 years ago)
  • 1.0.0                                ...           latest (5 years ago)

19 Versions

  • 1.0.0 [deprecated]           ...           5 years ago
  • 0.3.0 [deprecated]           ...           5 years ago
  • 0.3.0-rc.0                                ...           5 years ago
  • 0.2.8 [deprecated]           ...           6 years ago
  • 0.2.7 [deprecated]           ...           7 years ago
  • 0.2.6 [deprecated]           ...           7 years ago
  • 0.2.5 [deprecated]           ...           7 years ago
  • 0.2.4 [deprecated]           ...           7 years ago
  • 0.2.3 [deprecated]           ...           7 years ago
  • 0.2.2 [deprecated]           ...           7 years ago
  • 0.2.1 [deprecated]           ...           7 years ago
  • 0.2.0 [deprecated]           ...           7 years ago
  • 0.1.6 [deprecated]           ...           7 years ago
  • 0.1.5 [deprecated]           ...           7 years ago
  • 0.1.4 [deprecated]           ...           8 years ago
  • 0.1.3 [deprecated]           ...           8 years ago
  • 0.1.2 [deprecated]           ...           8 years ago
  • 0.1.1 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           8 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (11)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |