All Projects → riot → karma-riot

riot / karma-riot

Licence: MIT license
A Karma plugin. Compile and test HTML and JS in Riot tag files.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to karma-riot

Karma
Spectacular Test Runner for JavaScript
Stars: ✭ 11,591 (+57855%)
Mutual labels:  karma
Ol3echarts
🌏 📊 ol3Echarts | a openlayers extension to echarts
Stars: ✭ 229 (+1045%)
Mutual labels:  karma
react-facebook-friends
👍Web app to rank, quantify your FaceBook friendship with React
Stars: ✭ 26 (+30%)
Mutual labels:  karma
Saka
Elegant tab, bookmark and history search
Stars: ✭ 170 (+750%)
Mutual labels:  karma
React Cordova Boilerplate
TodoMVC example for react with development tools to build a cordova application
Stars: ✭ 206 (+930%)
Mutual labels:  karma
chrome-extension-boilerplate-riot
A boilerplate chrome extension (Single Page Application) using RIOT.js
Stars: ✭ 20 (+0%)
Mutual labels:  riot
Nutmeg
Build, test, and publish vanilla Web Components with a little spice
Stars: ✭ 111 (+455%)
Mutual labels:  karma
working-plusplus
Like plusplus.chat, but one that actually works, because you can host it yourself 😉
Stars: ✭ 21 (+5%)
Mutual labels:  karma
Pikarma
📡🍓🍍 Detects wireless network attacks performed by KARMA module (fake AP). Starts deauthentication attack (for fake access points)
Stars: ✭ 222 (+1010%)
Mutual labels:  karma
karma-detect-browsers
Karma runner plugin for detecting all browsers installed on the current system.
Stars: ✭ 44 (+120%)
Mutual labels:  karma
Angularjs Webpack Starter
🚀 A modern frontend setup for AngularJS projects using NPM, TypeScript and Webpack.
Stars: ✭ 173 (+765%)
Mutual labels:  karma
Karma Mocha Reporter
Karma reporter plugin with mocha style logging.
Stars: ✭ 197 (+885%)
Mutual labels:  karma
PollMaubot
A polling plugin for Riot (using maubot)
Stars: ✭ 18 (-10%)
Mutual labels:  riot
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (+725%)
Mutual labels:  karma
systemjs-riot
jspm/systemjs plugin to load RiotJS tags and inline them in the bundle
Stars: ✭ 18 (-10%)
Mutual labels:  riot
163music
🎵163 music web app built with Vue 2.6, server side render, webpack 4
Stars: ✭ 139 (+595%)
Mutual labels:  karma
osint
Docker image for osint
Stars: ✭ 92 (+360%)
Mutual labels:  karma
radical
Element (Riot Web) unofficially bundled as Firefox Add-on
Stars: ✭ 33 (+65%)
Mutual labels:  riot
riot
Riot API and analytics goodies
Stars: ✭ 30 (+50%)
Mutual labels:  riot
karma-tap
Let your Karma tests to consume TAP output
Stars: ✭ 29 (+45%)
Mutual labels:  karma

Build Status

Note: if you are working with Riot.js 4 this plugin is no longer needed. Please check this example to see how Riot.js components can be tested directly in node.

karma-riot

karma-riot is a Riot integration for Karma that handles tag modules with ease.

Installation

Install karma-riot from npm:

$ npm install --save-dev karma-riot

Your package.json will be like this:

{
  "devDependencies": {
    "karma": "^1.3.0",
    "karma-mocha": "1.3.0",
    "karma-mocha-reporter": "^2.2.1",
    "karma-phantomjs-launcher": "^1.0.2",
    "karma-riot": "^2.0.0",
    "riot": "^3.0.0"
  }
}

Configuration

Following code shows the default configuration...

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'riot'],
    plugins: [
      'karma-mocha',
      'karma-mocha-reporter',
      'karma-phantomjs-launcher',
      'karma-riot'
    ],
    files: [
      '**/*.tag',
      'test/**/*.js'
    ],
    preprocessors: {
      '**/*.tag': ['riot']
    },
    browsers: ['PhantomJS'],
    reporters: ['mocha']
  })
}

Options

riotPreprocessor: {
  options: {
    type: 'es6'
  }
}

Read the docs for more info on available options.

See our example for Mocha spec config.


For more information on Karma see the homepage.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].