All Projects → honzabrecka → karma-reporter

honzabrecka / karma-reporter

Licence: MIT license
A plugin for running clojurescript tests with Karma.

Programming Languages

clojure
4091 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to karma-reporter

Karma
Spectacular Test Runner for JavaScript
Stars: ✭ 11,591 (+50295.65%)
Mutual labels:  tdd, karma
Jasmine Matchers
Write Beautiful Specs with Custom Matchers for Jest and Jasmine
Stars: ✭ 552 (+2300%)
Mutual labels:  tdd, karma
kata
TDD, Refactoring kata in many languages
Stars: ✭ 14 (-39.13%)
Mutual labels:  tdd
spec
Unit testing Vapor 4 applications through declarative specifications.
Stars: ✭ 32 (+39.13%)
Mutual labels:  tdd
cukinia
A simple on-target system test framework for Linux
Stars: ✭ 24 (+4.35%)
Mutual labels:  tdd
solidity-tdd
Solidity Test Driven Development Boilerplate Project
Stars: ✭ 27 (+17.39%)
Mutual labels:  tdd
baserepo
Base repository
Stars: ✭ 71 (+208.7%)
Mutual labels:  tdd
PixelTest
Fast, modern, simple iOS snapshot testing written purely in Swift.
Stars: ✭ 56 (+143.48%)
Mutual labels:  tdd
meteor-video-chat
Simple id based video calling in meteor
Stars: ✭ 33 (+43.48%)
Mutual labels:  tdd
testing-angular-applications
Project for the Testing Angular Applications book
Stars: ✭ 99 (+330.43%)
Mutual labels:  karma
Build-A-Laravel-App-With-TDD
It's time to take the techniques we learned in Laravel From Scratch, and put them to good use building your first real-world application. Together, we'll leverage TDD to create Birdboard: a minimal Basecamp-like project management app. This series will give us a wide range of opportunities to pull up our sleeves and test our Laravel chops. As al…
Stars: ✭ 36 (+56.52%)
Mutual labels:  tdd
ginkgo4j
A Java BDD Testing Framework (based on RSpec and Ginkgo)
Stars: ✭ 25 (+8.7%)
Mutual labels:  tdd
framework
Lightweight, open source and magic-free framework for testing solidity smart contracts.
Stars: ✭ 36 (+56.52%)
Mutual labels:  tdd
java-8-matchers
Hamcrest Matchers for Java 8 features
Stars: ✭ 23 (+0%)
Mutual labels:  tdd
vue-webpack-boilerplate
A webpack boilerplate with vue-loader, axios, vue-router and vuex
Stars: ✭ 51 (+121.74%)
Mutual labels:  karma
angular-cli-skeleton
angular-cli skeleton to quickly start a new project with advanced features and best practices. All features are described in README.md.
Stars: ✭ 32 (+39.13%)
Mutual labels:  karma
utest
Lightweight unit testing framework for C/C++ projects. Suitable for embedded devices.
Stars: ✭ 18 (-21.74%)
Mutual labels:  tdd
bdd-for-all
Flexible and easy to use library to enable your behavorial driven development (BDD) teams to easily collaborate while promoting automation, transparency and reporting.
Stars: ✭ 42 (+82.61%)
Mutual labels:  tdd
mocha-cakes-2
A BDD plugin for Mocha testing framework
Stars: ✭ 44 (+91.3%)
Mutual labels:  tdd
book-fullstack-react-with-typescript
Working through the code samples from Fullstack React with Typescript by Maksim Ivanov and Alex Bespoyasov
Stars: ✭ 52 (+126.09%)
Mutual labels:  tdd

karma-reporter CircleCI

A plugin for running ClojureScript tests with Karma.

Installation

The easiest way is to keep karma-reporter as a dependency in your project.clj:

Clojars Project

To be able to execute your ClojureScript tests with Karma, you have to install karma-cljs-test adapter. You can simply do it by:

npm install karma-cljs-test --save-dev

And of course, you need Karma. If you haven't installed it yet, follow these instructions.

Configuration

// karma.conf.js
module.exports = function(config) {
  var root = 'target/public/dev'// same as :output-dir

  config.set({
    frameworks: ['cljs-test'],

    files: [
      root + '/goog/base.js',
      root + '/cljs_deps.js',
      root + '/app.js',// same as :output-to
      {pattern: root + '/*.js', included: false},
      {pattern: root + '/**/*.js', included: false}
    ],

    client: {
      // main function
      args: ['app.test_runner.run']
    },

    // singleRun set to false does not work!
    singleRun: true
  })
}

Usage

(ns app.test-runner
  (:require [jx.reporter.karma :refer-macros [run-tests run-all-tests]]
            [foo.bar-test]))

(enable-console-print!)

; runs all tests in all namespaces
(defn ^:export run-all [karma]
  (run-all-tests karma))

; runs all tests in all namespaces - only namespaces with names matching
; the regular expression will be tested
(defn ^:export run-all-regex [karma]
  (run-all-tests karma #".*-test$"))

; runs all tests in the given namespaces
(defn ^:export run [karma]
  (run-tests karma 'foo.bar-test))

To execute tests from command line:

./node_modules/.bin/karma start

To execute tests from REPL (will use :cljs.test/default reporter):

(app.test-runner/run nil)
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].