mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Move JS file to tests directory
This commit is contained in:
11
tests/js/scripts/run.bat
Executable file
11
tests/js/scripts/run.bat
Executable file
@@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
|
||||
REM Windows script for running unit tests
|
||||
REM You have to run server and capture some browser first
|
||||
REM
|
||||
REM Requirements:
|
||||
REM - NodeJS (http://nodejs.org/)
|
||||
REM - Testacular (npm install -g testacular)
|
||||
|
||||
set BASE_DIR=%~dp0
|
||||
testacular start "%BASE_DIR%\..\login\config\testacular.conf.js" %*
|
9
tests/js/scripts/run.sh
Executable file
9
tests/js/scripts/run.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASE_DIR=`dirname $0`
|
||||
|
||||
echo ""
|
||||
echo "Starting Testacular Server (http://vojtajina.github.com/testacular)"
|
||||
echo "-------------------------------------------------------------------"
|
||||
|
||||
testacular start $BASE_DIR/../login/config/testacular.conf.js $*
|
19
tests/js/scripts/watchr.rb
Normal file
19
tests/js/scripts/watchr.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env watchr
|
||||
|
||||
# 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
|
||||
|
||||
log_file = File.expand_path(File.dirname(__FILE__) + '/../logs/jstd.log')
|
||||
|
||||
`cd ..`
|
||||
`touch #{log_file}`
|
||||
|
||||
puts "String watchr... log file: #{log_file}"
|
||||
|
||||
watch( '(app/js|test/unit)' ) do
|
||||
`echo "\n\ntest run started @ \`date\`" > #{log_file}`
|
||||
`scripts/test.sh &> #{log_file}`
|
||||
end
|
||||
|
Reference in New Issue
Block a user