-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "tracy/tracy", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dg
Author
Member
|
||
"type": "library", | ||
"description": "Debugger for PHP", | ||
"keywords": ["debug", "debugger", "nette"], | ||
"homepage": "http://tracy.nette.org", | ||
"license": ["BSD-3-Clause", "GPL-2.0", "GPL-3.0"], | ||
"authors": [ | ||
{ | ||
"name": "David Grudl", | ||
"homepage": "http://davidgrudl.com" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.0" | ||
}, | ||
"require-dev": { | ||
"nette/tester": "@dev" | ||
}, | ||
"autoload": { | ||
"classmap": ["Tracy/"] | ||
This comment has been minimized.
Sorry, something went wrong.
Majkl578
Contributor
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/*/output | ||
/coverage.dat | ||
/test.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@ECHO OFF | ||
|
||
SET testRunner="%~dp0..\vendor\nette\tester\Tester\tester.php" | ||
|
||
IF NOT EXIST %testRunner% ( | ||
ECHO Nette Tester is missing. You can install it using Composer: | ||
ECHO php composer.phar update --dev | ||
EXIT /B 2 | ||
) | ||
|
||
SET phpIni="%~dp0php.ini-win" | ||
|
||
php.exe -c %phpIni% %testRunner% -p php-cgi.exe -c %phpIni% -j 20 -log "%~dp0test.log" %* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* Test initialization and helpers. | ||
* | ||
* @author David Grudl | ||
* @package Nette\Test | ||
*/ | ||
|
||
|
||
if (@!include __DIR__ . '/../vendor/autoload.php') { | ||
echo 'Install Nette Tester using `composer update --dev`'; | ||
exit(1); | ||
} | ||
|
||
|
||
// configure environment | ||
Tester\Helpers::setup(); | ||
class_alias('Tester\Assert', 'Assert'); | ||
date_default_timezone_set('Europe/Prague'); | ||
|
||
|
||
if (extension_loaded('xdebug')) { | ||
xdebug_disable(); | ||
Tester\CodeCoverage\Collector::start(__DIR__ . '/coverage.dat'); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[PHP] | ||
;extension_dir = "./ext" | ||
|
||
[Zend] | ||
;zend_extension="./ext/zend_extension" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[PHP] | ||
extension_dir = "./ext" | ||
extension=php_mbstring.dll | ||
|
||
[Zend] | ||
;zend_extension="./ext/php_xdebug-2.0.5-5.3-vc6.dll" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
|
||
# Path to this script's directory | ||
dir=$(cd `dirname $0` && pwd) | ||
|
||
# Path to test runner script | ||
runnerScript="$dir/../vendor/nette/tester/Tester/tester.php" | ||
if [ ! -f "$runnerScript" ]; then | ||
echo "Nette Tester is missing. You can install it using Composer:" >&2 | ||
echo "php composer.phar update --dev." >&2 | ||
exit 2 | ||
fi | ||
|
||
# Path to php.ini if passed as argument option | ||
phpIni= | ||
while getopts ":c:" opt; do | ||
case $opt in | ||
c) phpIni="$OPTARG" | ||
;; | ||
|
||
:) echo "Missing argument for -$OPTARG option" >&2 | ||
exit 2 | ||
;; | ||
esac | ||
done | ||
|
||
# Runs tests with script's arguments, add default php.ini if not specified | ||
# Doubled -c option intentionally | ||
if [ -n "$phpIni" ]; then | ||
php -c "$phpIni" "$runnerScript" -j 20 "$@" | ||
else | ||
php -c "$dir/php.ini-unix" "$runnerScript" -j 20 -c "$dir/php.ini-unix" "$@" | ||
fi | ||
error=$? | ||
|
||
# Print *.actual content if tests failed | ||
if [ "${VERBOSE-false}" != "false" -a $error -ne 0 ]; then | ||
for i in $(find . -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done | ||
exit $error | ||
fi |
5 comments
on commit 8fb7b54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the order of files and directories
tests
Tracy
vendor
composer.json
I mean Tracy after tests. Wouldn't it be better this way?
sources
Tracy
tests
vendor
composer.json
Yes, it is detail ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 maybe sources -> src ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The src is commonly used and sounds good in abbreviation like libs, www, app. But sources sounds better in names like tests, vendor, examples, composer…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src is pattern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree with david's "sounding" args but also agree that the src is a pattern and that arg has for me bigger weight...
Should be
nette/tracy
(same vendor as on GitHub).