Permalink
Browse files

plugged testacular & jasmine

  • Loading branch information...
1 parent 3c9192d commit 6afba1e98e0d7d1545cd9f8533199f17c57b6741 @tarekziade tarekziade committed Feb 8, 2013
Showing with 94 additions and 0 deletions.
  1. +3 −0 Makefile
  2. +21 −0 monolith/tests/client.js
  3. +70 −0 testacular.conf.js
View
@@ -18,3 +18,6 @@ build: $(PYTHON)
test: build
$(BIN)/nosetests -s -d -v --with-coverage --cover-package monolith monolith
+
+testjs: build
+ testacular start --single-run
@@ -0,0 +1,21 @@
+
+
+describe("A suite", function() {
+ it("contains spec with an expectation", function() {
+ expect(true).toBe(true);
+ });
+});
+
+
+
+
+describe("A suite is just a function", function() {
+ var a;
+
+ it("and so is a spec", function() {
+ a = true;
+ expect(a).toBe(true);
+ });
+});
+
+
View
@@ -0,0 +1,70 @@
+// Testacular configuration
+// Generated on Fri Feb 08 2013 12:36:19 GMT-0800 (PST)
+
+
+// base path, that will be used to resolve files and exclude
+basePath = '.';
+
+
+// list of files / patterns to load in the browser
+files = [
+ JASMINE,
+ JASMINE_ADAPTER,
+ 'monolith/media/lib/jquery.min.js',
+ 'monolith/media/lib/highcharts.js',
+ 'monolith/media/lib/*.js',
+ 'monolith/media/*.js',
+ 'monolith/tests/client.js'
+];
+
+
+// list of files to exclude
+exclude = [
+
+];
+
+
+// test results reporter to use
+// possible values: 'dots', 'progress', 'junit'
+reporters = ['progress'];
+
+
+// web server port
+port = 8080;
+
+
+// cli runner port
+runnerPort = 9100;
+
+
+// enable / disable colors in the output (reporters and logs)
+colors = true;
+
+
+// level of logging
+// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
+logLevel = LOG_INFO;
+
+
+// enable / disable watching file and executing tests whenever any file changes
+autoWatch = true;
+
+
+// Start these browsers, currently available:
+// - Chrome
+// - ChromeCanary
+// - Firefox
+// - Opera
+// - Safari (only Mac)
+// - PhantomJS
+// - IE (only Windows)
+browsers = ['Firefox'];
+
+
+// If browser does not capture in given timeout [ms], kill it
+captureTimeout = 5000;
+
+
+// Continuous Integration mode
+// if true, it capture browsers, run tests and exit
+singleRun = false;

0 comments on commit 6afba1e

Please sign in to comment.