Borrowed heavily from Laracasts.com. Go give Jeffrey money and learn a ton!
To learn Test-driven Development (TDD) with simple examples.
language: java | |
sudo: required | |
jdk: | |
- oraclejdk8 | |
cache: | |
directories: | |
- $HOME/.CommandBox | |
env: | |
matrix: | |
- [email protected] |
// Any Query Filter will loop through the request context | |
// see if any of the keys match functions on the concrete class, | |
// and if they do, call the function with the value in the request context. | |
component { | |
function apply(rc, query) { | |
variables.query = arguments.query; | |
for (var key in rc) { | |
if (structKeyExists(variables, key) && isCustomFunction(variables[key]) { |
component { | |
this.name = 'TestBoxTestingSuite' & hash(getCurrentTemplatePath()); | |
this.sessionManagement = true; | |
this.sessionTimeout = createTimeSpan(0, 0, 15, 0); | |
this.applicationTimeout = createTimeSpan(0, 0, 15, 0); | |
this.setClientCookies = true; | |
this.mappings['/tests'] = getDirectoryFromPath(getCurrentTemplatePath()); | |
rootPath = REReplaceNoCase(this.mappings['/tests'], 'tests(\\|/)', ''); |
Borrowed heavily from Laracasts.com. Go give Jeffrey money and learn a ton!
To learn Test-driven Development (TDD) with simple examples.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Quick Selection Box"> | |
<script src="https://code.jquery.com/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> |
component extends='cfselenium.BaseSpec' { | |
function beforeAll() { | |
super.beforeAll('http://#CGI.HTTP_HOST#/'); | |
} | |
function afterAll() { | |
super.afterAll(); | |
} |
<cfscript> | |
function dumpOutput(filters = {}) { | |
for (var key in arguments.filters) { | |
writeDump({ | |
key = key, | |
value = arguments.filters[key], | |
struct = arguments.filters | |
}); | |
} |
<cfscript> | |
function dumpOutput(filters = {}) { | |
arguments.filters.each(function(key, value, struct) { | |
writeDump(arguments); | |
}); | |
} | |
function dumpByPassingArguments() { | |
dumpOutput(filters = arguments); |
# CommandBox | |
alias bss="box server toggle" | |
alias bsa="box server stop --all" | |
alias bfa="box server forget --all --force" | |
alias bsfa="box server stop --all --forget" |