<commit_before>"""Unit tests for the javascript code."""

__author__ = '<NAME> (<EMAIL>)'


import subprocess
import unittest


class AllJavaScriptTests(unittest.TestCase):

    def test_all(self):
        subprocess.call([
            'karma', 'start',
            'experimental/coursebuilder/tests/unit/karma.conf.js'])<commit_msg>Make the python wrapper for Karma tests count failing tests as failures. 	Change on 2013/07/31 by jorr <<EMAIL>> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=50196748<commit_after>"""Unit tests for the javascript code."""

__author__ = '<NAME> (<EMAIL>)'


import subprocess
import unittest


class AllJavaScriptTests(unittest.TestCase):

    def test_all(self):
        retcode = subprocess.call([
            'karma', 'start',
            'experimental/coursebuilder/tests/unit/karma.conf.js'])
        self.assertEqual(retcode, 0)
{'fraction_non_alphanumeric': 0.13827433628318583, 'fraction_numerical': 0.018805309734513276, 'mean_word_length': 3.4146341463414633, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2640604', 'n_tokens_mistral': 296, 'n_tokens_neox': 269, 'n_words': 66}