Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some basic infrastructure.

  • Loading branch information...
commit 340d3cea02b11095f3a47a0715fdc1f03671309f 1 parent b65d98c
@markmandel authored
View
6 .gitignore
@@ -0,0 +1,6 @@
+#ignore these files
+.*
+!.gitignore
+!.htaccess
+/settings.xml
+*.iml
View
15 README
@@ -1 +1,16 @@
+Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
Initial README for Squabble Multivariant Testing Library.
View
2  docs/api/.gitignore
@@ -0,0 +1,2 @@
+/squabble
+/squabble/**/*
View
26 docs/gen/colddoc/Application.cfc
@@ -0,0 +1,26 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+
+<cfcomponent hint="The application.cfc" output="false">
+
+<cfsetting showdebugoutput="false">
+<cfscript>
+ this.name = "Squabble Documentation";
+ this.sessionmanagement = false;
+</cfscript>
+
+</cfcomponent>
View
38 docs/gen/colddoc/run.cfm
@@ -0,0 +1,38 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+<!--- doesn't hurt --->
+<cfsetting requesttimeout="9600">
+
+<cfoutput>
+<cfscript>
+ base = expandPath("/squabble");
+ path = expandPath("../../api/squabble");
+
+ colddoc = createObject("component", "colddoc.ColdDoc").init();
+ strategy = createObject("component", "colddoc.strategy.api.HTMLAPIStrategy").init(path, "Squabble");
+ colddoc.setStrategy(strategy);
+
+ colddoc.generate(base, "squabble");
+</cfscript>
+</cfoutput>
+<h1>Done!</h1>
+
+<p>
+<cfoutput>#now()#</cfoutput>
+</p>
+
+<a href="../../api/squabble">Documentation</a>
View
31 squabble/SquabbleService.cfc
@@ -0,0 +1,31 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+<cfcomponent hint="Service Layer for Squabble. To be instantiated on applications start up as a singleton." output="false">
+
+<!------------------------------------------- PUBLIC ------------------------------------------->
+
+<cffunction name="init" hint="Constructor" access="public" returntype="SquabbleService" output="false">
+ <cfscript>
+ return this;
+ </cfscript>
+</cffunction>
+
+<!------------------------------------------- PACKAGE ------------------------------------------->
+
+<!------------------------------------------- PRIVATE ------------------------------------------->
+
+</cfcomponent>
View
36 unittests/AbstractTestCase.cfc
@@ -0,0 +1,36 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+<cfcomponent hint="An abstract test case for default setup, teardown, and util methods" extends="mxunit.framework.TestCase" output="false"
+ colddoc:abstract="true">
+
+<!------------------------------------------- PUBLIC ------------------------------------------->
+
+<cffunction name="_trace" access="private">
+ <cfargument name="s">
+ <cfset var g = "">
+ <cfsetting showdebugoutput="true">
+ <cfsavecontent variable="g">
+ <cfdump var="#arguments.s#">
+ </cfsavecontent>
+ <cftrace text="#g#">
+</cffunction>
+
+<!------------------------------------------- PACKAGE ------------------------------------------->
+
+<!------------------------------------------- PRIVATE ------------------------------------------->
+
+</cfcomponent>
View
29 unittests/Application.cfc
@@ -0,0 +1,29 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+<cfcomponent hint="The applicaiton.cfc for squabble unit tests" output="false">
+
+<cfscript>
+ this.name = "Squabble Unit Tests";
+</cfscript>
+
+<!------------------------------------------- PUBLIC ------------------------------------------->
+
+<!------------------------------------------- PACKAGE ------------------------------------------->
+
+<!------------------------------------------- PRIVATE ------------------------------------------->
+
+</cfcomponent>
View
19 unittests/HttpAntRunner.cfc
@@ -0,0 +1,19 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+<cfcomponent extends="mxunit.runner.HttpAntRunner" output="false">
+
+</cfcomponent>
View
20 unittests/RemoteFacade.cfc
@@ -0,0 +1,20 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ --->
+
+<cfcomponent extends="mxunit.framework.RemoteFacade" output="false">
+
+</cfcomponent>
View
34 unittests/index.cfm
@@ -0,0 +1,34 @@
+<!---
+ Copyright 2011 Ezra Parker, Josh Wines, Mark Mandel
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ --->
+
+<html>
+
+<body>
+
+<cfscript>
+ directoryTestSuite = createObject("component", "mxunit.runner.DirectoryTestSuite");
+ result = directoryTestSuite.run(directory="#expandPath('/unittests')#"
+ ,componentPath="unittests"
+ ,recurse="true"
+ );
+
+</cfscript>
+
+<cfoutput> #result.getResultsOutput("html")# </cfoutput>
+
+</body>
+
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.