mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(jstd): remove JsTestDriver from our repo
Testacular FTW!
This commit is contained in:
parent
ca96ec32f9
commit
8d69f4b93a
18 changed files with 0 additions and 116 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -10,6 +10,5 @@ performance/temp*.html
|
|||
*~
|
||||
angular.js.tmproj
|
||||
node_modules
|
||||
jsTestDriver*.conf
|
||||
angular.xcodeproj
|
||||
.idea
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
#!/usr/bin/env node
|
||||
/* This file reads in list of files from angularFiles.js and generate various jstd config files */
|
||||
|
||||
var fs = require('fs'),
|
||||
angularSrc,
|
||||
angularScenario;
|
||||
|
||||
fs.readFile('angularFiles.js', function(err, data) {
|
||||
eval(data.toString());
|
||||
var prefix = 'server: http://localhost:9876\n\n',
|
||||
prefixScenario = 'server: http://localhost:9877\n\n';
|
||||
|
||||
angularSrc = angularFiles.angularSrc.join('\n- ');
|
||||
angularScenario = angularFiles.angularScenario.join('\n- ');
|
||||
|
||||
fs.writeFile('./jsTestDriver.conf', prefix + combine(angularFiles.jstd,
|
||||
angularFiles.jstdExclude));
|
||||
|
||||
fs.writeFile('./jsTestDriver-modules.conf', prefix + combine(angularFiles.jstdModules));
|
||||
|
||||
fs.writeFile('./jsTestDriver-scenario.conf', prefixScenario +
|
||||
combine(angularFiles.jstdScenario) +
|
||||
'\n\nproxy:\n- {matcher: "*", server: "http://localhost:8000"}');
|
||||
|
||||
fs.writeFile('./jsTestDriver-perf.conf', prefix + combine(angularFiles.jstdPerf,
|
||||
angularFiles.jstdPerfExclude));
|
||||
|
||||
fs.writeFile('./jsTestDriver-jquery.conf', prefix + combine(angularFiles.jstdJquery,
|
||||
angularFiles.jstdJqueryExclude));
|
||||
|
||||
fs.writeFile('./jsTestDriver-coverage.conf', prefix +
|
||||
combine(angularFiles.jstd, angularFiles.jstdExclude) +
|
||||
'\n\nplugin:\n- name: "coverage"\n' +
|
||||
'jar: "lib/jstestdriver/coverage.jar"\n' +
|
||||
'module: "com.google.jstestdriver.coverage.CoverageModule"');
|
||||
});
|
||||
|
||||
function combine(load, exclude) {
|
||||
var fileList = 'load:\n- ' + load.join('\n- ');
|
||||
if (exclude) fileList += ('\n\nexclude:\n- ' + exclude.join('\n- '));
|
||||
|
||||
//Replace placeholders for src list before returning
|
||||
return fileList.replace(/@(.*)/g, function(all, alias) {
|
||||
return angularFiles[alias].join('\n- ');
|
||||
});
|
||||
}
|
||||
|
||||
2
java
2
java
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java $@
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
1.3.3d
|
||||
17
link-docs.sh
17
link-docs.sh
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
./gen_docs.sh
|
||||
|
||||
rm build/docs/index.html
|
||||
rm -rf build/docs/css
|
||||
rm -rf build/docs/js
|
||||
rm -rf build/docs/img
|
||||
rm -rf build/docs/examples
|
||||
|
||||
cd build/docs
|
||||
|
||||
ln -s ../../docs/src/templates/index.html
|
||||
ln -s ../../docs/src/templates/css
|
||||
ln -s ../../docs/src/templates/js
|
||||
ln -s ../../docs/img
|
||||
ln -s ../../docs/examples
|
||||
|
|
@ -1 +0,0 @@
|
|||
java -jar lib/jstestdriver/JsTestDriver.jar --port 9876 --browserTimeout 20000 --config jsTestDriver-coverage.conf
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --port 9877 --browserTimeout 90000 --config jsTestDriver-scenario.conf
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
node gen_jstd_configs.js
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --port 9876 --browserTimeout 90000
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests all $@
|
||||
genhtml -o tmp/coverage-html/ tmp/lcov/jsTestDriver.conf-coverage.dat
|
||||
echo "done! check out tmp/coverage-html/index.html"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
if [ ! -e test.dissable ]; then
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-jquery.conf $@
|
||||
fi
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
if [ ! -e test.dissable ]; then
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-modules.conf $@
|
||||
fi
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
norecompile=$1
|
||||
|
||||
if [[ $norecompile = "" ]]; then
|
||||
rake compile
|
||||
fi
|
||||
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-perf.conf $@
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
tests=$1
|
||||
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --tests all --reset
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --tests "all" --config jsTestDriver-scenario.conf --reset
|
||||
4
test.sh
4
test.sh
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
if [ ! -e test.dissable ]; then
|
||||
java -jar lib/jstestdriver/JsTestDriver.jar --tests all $@
|
||||
fi
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
# config file for watchr http://github.com/mynyml/watchr
|
||||
# install: gem install watchr
|
||||
# run: watch watchr.rb
|
||||
# note: make sure that you have jstd server running (server.sh) and a browser captured
|
||||
|
||||
watch( '(src|test|example)/' ) do
|
||||
system 'echo "\n\ntest run started @ `date`"; ./test.sh '
|
||||
end
|
||||
Loading…
Reference in a new issue