Go to file
Damian Mooyman 69d888b5d1 FIXED: Issue with test reporting not correctly presenting errors that prevent test execution.
In the case of errors arising during setUp or setUpOnce a unit test will fail to run any individual tests. However, this situation was incorrectly being reported as a test pass (as no tests were run, thus no tests had errors). E.g. the output of a test run that raised an error during setUp would be "0 tests run: 0 passes, 0 failures, and 0 incomplete" with a green background.

To rectify this the following fixes were made:
- Non-cleanly ended tests and test suites are now automatically ended at the end of the test run, as well as at the beginning of subsequent test/suites. This should make catching of errors a lot more robust.
- Errors raised during setup are now no longer lost to the mist of time. The test suite itself will record any error status which was generated outside the scope of any individual tests.
- An additional "errors" count is added to the output at the end of test running. For example, in the case where setup failed and no tests could be run the error would be written to the browser (along with stacktrace) with a message similar to "0 tests run: 0 passes, 0 failures, and 0 incomplete with 1 errors". The intent of this is to separate the concepts of failed/succeeded/incomplete tests from any errors which may have arisen. I.e. no tests "failed" due to the error, but the test run itself is highlighted as an error (red background on the output).

This problem has been a severe cause of issue when testing code that interacts with the database, as any database error during setup would refuse to be shown.
2012-09-19 12:25:58 +12:00
_config FIX issue with cyclic configs when framework called sapphire 2012-08-28 15:44:40 +12:00
admin FIX 7856 If the submit button is disabled, to perform the ajax request 2012-09-11 15:00:36 +12:00
api ISSUE 7833: Invoke ShortcodeParser on RestfulServer output 2012-09-17 17:53:51 +12:00
cache NEW Allow setting default cache lifetime, and test that it's being used correctly on new caches 2012-09-03 12:55:19 +12:00
cli MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
conf MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
control APICHANGE: Changed behaviour of HTTP_Request::params to include route table params (as per 2.4 behaviour, see FIX: below). 2012-08-27 10:56:59 +12:00
core Merge pull request #750 from silverstripe-rebelalliance/open/5971 2012-08-29 22:48:31 -07:00
css Make the border colors of test report status texts more subtle thus less distracting 2012-09-01 12:24:51 +12:00
dev FIXED: Issue with test reporting not correctly presenting errors that prevent test execution. 2012-09-19 12:25:58 +12:00
docs Tidy up RSSFeed docs based on community feedback. (Thanks Matt Howlett) 2012-09-18 19:42:21 +12:00
email Merge pull request #774 from icecaster/master 2012-09-05 19:04:20 -07:00
filesystem NEW 7838 Support for document as a category in File class 2012-09-04 11:08:38 +12:00
forms Refer to setColumns in deprecation message instead of non-existent setCols 2012-09-18 09:39:08 +12:00
i18n Registering Te Reo support in i18n 2012-08-13 00:15:36 +02:00
images BUGFIXES: File Uploads 2012-06-08 18:40:33 +02:00
javascript FIX 7862 Strict equality check on previously selected item in the TreeDropdownField 2012-09-13 09:27:09 +12:00
lang Updated translations 2012-09-12 10:55:24 +02:00
model Merge pull request #796 from stozze/3.0-bugfix 2012-09-17 18:26:44 -07:00
oembed ENHANCEMENT: Ntfcatn. image embedding(trac #7438) 2012-08-16 21:03:37 +02:00
parsers BUG BBCodeParser wasnt working due to php4 lack of statics 2012-07-31 15:43:01 +12:00
scss Fix TreeDropdownField toggle alignment in FF 2012-08-16 21:13:44 +02:00
search FIXED: Generation of tables with fulltext indexes now no longer incorrectly thinks that all fulltext indexes have changed. 2012-09-11 12:53:08 +12:00
security FIXED: collateFamilyIDs() nested groups throws error 2012-09-14 12:12:37 -03:00
tasks MINOR Stability fixes on new tokenizer implementation of i18nTextCollector, allowing to specify writer and locale arguments on task execution 2012-04-16 12:25:49 +02:00
templates Updated default controller and template link to documentation 2012-09-15 13:09:51 +08:00
tests Merge branch 'bugfix/apishortcodes' of https://github.com/elliot-sawyer/sapphire into 3.0 2012-09-18 16:36:11 +12:00
thirdparty Upgrading TinyMCE dependency to 3.5.6, and updating language packs. 2012-09-14 15:26:17 +12:00
view Allow scheme-relative URLs in requirements 2012-08-22 16:49:55 -07:00
_config.php FEATURE: Allow adding media to the CMS using oEmbed 2012-05-24 17:00:21 +12:00
_register_database.php BUGFIX Updating MySQLDatabaseConfigurationHelper to check for MySQLi 2012-04-28 12:13:58 +12:00
.gitignore Merge branch 'master' of git://github.com/silverstripe/sapphire 2012-05-03 13:40:26 +12:00
.htaccess BUGFIX: Put all php file inclusions/exclusions into a single file, because some servers don't seem to allow reenabling of file access in a subdirection .htaccess file. 2012-05-03 13:13:51 +12:00
.travis.yml Removed SQLite from Travis build. 2012-09-11 12:26:59 +12:00
cli-script.php CLI bootstrap: Merge existing $_GET and $_REQUEST data 2012-07-04 15:20:08 +02:00
config.rb MINOR Using SCSS/Compass for sapphire/css 2012-01-08 19:14:32 +01:00
main.php BUGFIX Fixing bootstrap.php to work with FakeController properly for 2012-05-09 23:05:38 +12:00
main.php5 MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Makefile ENHANCEMENT Allowing JSTestDriver execution in tests/javascript/ by adding bash scripts and new Makefile command ("make jasmine") 2011-03-22 18:05:43 +13:00
README.md MINOR: Add a fallback thumbnail image for oEmbed inserts 2012-05-25 15:40:17 +12:00
sake API-CHANGE sapphire folder can now be renamed. 2012-04-15 10:50:19 +12:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:21 +01:00
static-main.php BUGFIX Loosened character replacement in static-main.php, to allow for multibyte paths (see URLSegmentFilter::$default_allow_multibyte) 2012-05-08 23:43:45 +02:00
web.config BUGFIX Disallow web access to sapphire/silverstripe_version to avoid information leakage 2010-12-09 22:53:24 +00:00

Overview

PHP5 framework forming the base for the SilverStripe CMS (http://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See installation on different platforms, and installation from source.

License

Copyright (c) 2007-2011, SilverStripe Limited - www.silverstripe.com
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the 
      documentation and/or other materials provided with the distribution.
    * Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software 
      without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

Attribution