Skip to content

Commit

Permalink
Fixing tests and adding a jake test task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandler Kent committed Feb 8, 2010
1 parent e80f90b commit 9712dfa
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions CKJSONKeyedArchiving/Jakefile
@@ -0,0 +1,27 @@
/*
* Jakefile
* test
*
* Created by You on November 12, 2009.
* Copyright 2009, Your Company All rights reserved.
*/

var ENV = require("system").env,
FILE = require("file"),
task = require("jake").task,
SYSTEM = require("system"),
OS = require("os"),
FileList = require("jake").FileList,
app = require("cappuccino/jake").app,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug";

task("test", function()
{
var tests = new FileList('Tests/*Test.j');
var cmd = ["ojtest"].concat(tests.items());
var cmdString = cmd.map(OS.enquote).join(" ");

var code = OS.system(cmdString);
if (code !== 0)
OS.exit(code);
});
2 changes: 1 addition & 1 deletion CKJSONKeyedArchiving/Tests/CKJSONKeyedArchiverTest.j
@@ -1,4 +1,4 @@
@import <CKJSONKeyedArchiving/CKJSONKeyedUnarchiver.j>
@import "../CKJSONKeyedArchiver.j"

@implementation CKJSONKeyedArchiverTest : OJTestCase

Expand Down
2 changes: 1 addition & 1 deletion CKJSONKeyedArchiving/Tests/CKJSONKeyedUnarchiverTest.j
@@ -1,4 +1,4 @@
@import <CKJSONKeyedArchiving/CKJSONKeyedUnarchiver.j>
@import "../CKJSONKeyedUnarchiver.j"

@implementation CKJSONKeyedUnarchiverTest : OJTestCase

Expand Down

0 comments on commit 9712dfa

Please sign in to comment.