Commit Graph

96 Commits

Author SHA1 Message Date
Sam Minnee
c47257568c FEATURE: Added support for 'sake dev/tests/all --showslow' to list slow tests
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64480 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-17 02:28:55 +00:00
Sam Minnee
f49e2c1ca6 BUGFIX: posix_isatty sometimes returns a benign error
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64466 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-16 23:17:43 +00:00
Sam Minnee
509f14d6ae FEATURE: Show max memory usage on dev/tests/all
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64461 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-16 22:26:16 +00:00
Ingo Schommer
5b91ea9d0a ENHANCEMENT Improved TaskRunner and BuildTask metadata and styling
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64446 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-16 20:40:24 +00:00
Sam Minnee
f1f76b22b7 FEATURE: Flush template cache before running tests
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64444 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-16 19:48:12 +00:00
Ingo Schommer
404aba0bb8 API CHANGE Removed Debug::mailBuffer()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64381 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-16 08:43:03 +00:00
Ingo Schommer
be0d3e37c5 ENHANCEMENT Added Controller->redirectBack()
BUGFIX Storing HTTP "Referer" header from $_SERVER in Director::direct() and passing it along in Director::test()
ENHANCEMENT Storing a "fake referer" in TestSession->lastURL to allow for redirectBack() calls, e.g. after failed form validation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64229 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-14 19:59:01 +00:00
Sam Minnee
6fa55568ee BUGFIX #2936: Define STDOUT if it's not already defined...
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64124 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-13 01:40:42 +00:00
Ingo Schommer
7f40b2b953 BUGFIX Fixed CSSContentParser to only use tidy on CLI mode if its available, and first check for existence of PHP tidy extension. Fixes failing unit tests on standard WAMP windows installations.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64097 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-12 16:15:24 +00:00
Ingo Schommer
c6f1a231a3 BUGFIX Fixed CSVParser assumptions about absolute unix-style filepaths - using Director::absFile() instead now
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64096 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-12 15:53:25 +00:00
Ingo Schommer
daaf05530c BUGFIX Fixed DebugView Breadcrumbs to not include query string as separate link, and don't append an arrow after the last element
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64072 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-10 13:05:37 +00:00
Ingo Schommer
9a298e1592 BUGFIX Limited error message scope on invalid classname for TestRunner
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64013 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 18:49:24 +00:00
Ingo Schommer
ad3f0f400f ENHANCEMENT Improved error message on invalid classname for TestRunner
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64012 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 18:43:22 +00:00
Ingo Schommer
53ba32a41a MINOR Syntax fix in CliTestReporter which was causing wrong array indices
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64008 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 15:17:59 +00:00
Ingo Schommer
950560e188 MINOR Fixed PHP notice in CLITestReporter
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64006 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 15:14:31 +00:00
Sam Minnee
679f694c67 Improved backtrace generation in test reporter, to limit the amount of unnecessary waffle.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63938 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 01:45:36 +00:00
Sam Minnee
25a812c12f MINOR: Reformatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63937 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 01:45:12 +00:00
Sam Minnee
db0644c985 BUGFIX: Improved detection of CLI colour support
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63927 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-09 00:49:53 +00:00
Sam Minnee
a79ab917c7 FEATURE: Added coloured output to dev/tests/all
API CHANGE: Added SSCli class to help with outputting coloured text on the command line

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63637 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-04 05:41:15 +00:00
Sam Minnee
d0ba21a12f Break sake dev/tests/all status dots onto lines of 80
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63580 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-03 02:23:35 +00:00
Sam Minnee
cbc228f9a2 API CHANGE: Created CSVParser class and updated CSVBulkLoader to use it
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63563 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-03 00:27:58 +00:00
Sam Minnee
805c50b5fe Added dev/modules/remove and cleaned up rebuilding code on add and remove module
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63545 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 22:06:44 +00:00
Sam Minnee
47f40ed6bd Added security for experimental module manager
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63535 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 21:01:45 +00:00
Sam Minnee
5478c88583 Added initial module manager API, with the capability of adding a module to svn:externals
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63534 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 20:59:43 +00:00
Sam Minnee
de4664cc10 Secured SapphireInfo
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63532 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 20:43:22 +00:00
Ingo Schommer
0eff9f7e62 MINOR Reverted my email address with something more spambot safe from r63489 ;)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63530 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 10:29:41 +00:00
Sean Harvey
c5ed0c3c2e MINOR removed < and > characters from @author phpdoc token
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63492 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 00:38:53 +00:00
Sean Harvey
673ce66e90 MINOR Filled in Ingo's email for phpdoc since he failed to do it himself
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63489 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-02 00:34:04 +00:00
Ingo Schommer
5d3e815967 API CHANGE Changed parameters for Debug::friendlyError()
ENHANCEMENT Using DebugView class in Debug::friendlyError()
ENHANCEMENT Using Debug::friendlyError() in HTTPResponse class if status code signifies error (only on live environments in non-ajax requests)
ENHANCEMENT Showing contact information in Debug::friendlyError() from Email::getAdminEmail()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63465 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-01 14:43:43 +00:00
Ingo Schommer
9371f4688b ENHANCEMENT Introduced constants for system paths like /sapphire in preparation for a more flexible directory reorganisation. Instead of hardcoding your path, please use the following constants: BASE_PATH, BASE_URL, SAPPHIRE_DIR, SAPPHIRE_PATH, CMS_DIR, CMS_PATH, THIRDPARTY_DIR, THIRDPARTY_PATH, ASSETS_DIR, ASSETS_PATH, THEMES_DIR, THEMES_PATH
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63154 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-27 16:02:38 +00:00
Sam Minnee
f47d5481ee ENHANCEMENT: Better CLI output of 'sake dev'
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63025 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-25 00:36:20 +00:00
Sam Minnee
92946e4ae7 ENHANCEMENT #2853 - Added dev/build as a the new name for db/build; prettied it up
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63022 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-25 00:23:41 +00:00
Sam Minnee
b031c8ff8b Added status notifications to cli test runs
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62912 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-23 03:22:13 +00:00
Ingo Schommer
306ea3761f ENHANCEMENT Added Debug::send_warnings_to()
API CHANGE Deprecated Debug::mailBuffer()
API CHANGE Removed Debug::warning()
MINOR Documentation and formatting for Debug class

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62843 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-22 16:03:19 +00:00
Sam Minnee
ffcac733e9 Update test runner so that password validation config isn't tested by default
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62654 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-18 03:59:00 +00:00
Ingo Schommer
0739b0520e ENHANCEMENT In Debug::showError(), if error is displayed through ajax with CliDebugView, use plaintext output
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62468 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-16 18:15:26 +00:00
Ingo Schommer
c57ce5f1a4 FEATURE Formatting MySQL error messages with newlines through new SQLFormatter class (used in MySQLDatabase)
ENHANCEMENT Using CliDebugView to report errors on ajax requests (with plaintext output)
ENHANCEMENT Removed "ERROR:" prefix hack for ajax error responses - clientside evaluation should inspect HTTP status codes instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62467 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-16 18:12:07 +00:00
Ingo Schommer
57ef082a74 FEATURE Added BulkLoader_Result for better inspection of import results, replacing the simple numeric count result format.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62396 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-15 14:21:43 +00:00
Sam Minnee
d072e280e4 Merged branches/roa into trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62321 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-12 04:49:15 +00:00
Sam Minnee
5cd5440473 FEATURE: Update error handler to show useful information in the 500's status text
FEATURE: Allow customisation of HTTPResponse status text, as well as status code 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62286 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-12 01:47:39 +00:00
Sam Minnee
a29b53a31a MINOR: Remove commented out code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61702 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-28 05:09:21 +00:00
Sam Minnee
bbdcfa1b98 BUGFIX: Fixed bulk loader constructor
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61699 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-28 05:00:51 +00:00
Sam Minnee
18fe7ccdaf Updated CSV bulk loader to import unix/windows files on a mac server
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61698 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-28 05:00:34 +00:00
Sam Minnee
e9615040e1 ENHANCEMENT: Added dev/tests/startsession and dev/tests/endsession to allow the use of fixtures with external test frameworks, such as Windmill
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61627 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-27 08:19:46 +00:00
Sam Minnee
63224005f5 Fixed coverage reporting on test runner
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61461 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-25 01:41:58 +00:00
Sam Minnee
fb822a0924 Better error message if you have forgotten to set fixture_file
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61410 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-22 03:33:25 +00:00
Saophalkun Ponlu
f6754178d9 uncommmented processRecord that process each record because it was mistakenly commented previously
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61135 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-20 03:55:23 +00:00
Saophalkun Ponlu
727a1f52fc change the return type of processAll of CsvBulkLoader from DataObjectSet to int, the number of affected row
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61122 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-20 02:38:45 +00:00
Saophalkun Ponlu
802b93be2e modified csv import function documention. It returns number of affected records.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61120 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-20 02:29:37 +00:00
Ingo Schommer
67e427cdf6 BUGFIX Reinstated error_handling(E_ALL) for dev environments in main.php after clarifying with sam - we want to force developers to recard notice-level errors unless they expicitly opt-out in their _config.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60643 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-13 21:49:52 +00:00