Download the PHP package symbiote/silverstripe-test-assist without Composer

On this page you can find all versions of the php package symbiote/silverstripe-test-assist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-test-assist

Symbiote Testing Extensions Module

Adds several helpers to the base SilverStripe testing framework to simplify hooking the testing process into CI servers such as Jenkins, by parameterising several configuration options.

Additionally, the module provides the SymbioteSeleniumTestCase which provides a simpler API for writing Selenium powered tests.

Command line parameters

To help with test execution, there's a few parameters that can be used to assist in speeding things up if you're repeatedly running tests.

Selenium

To run just the selenium tests, a commandline such as

Note: The trailing slash in the URL is important!

should get you going. Note that you will need to have selenium server running for this to work. A command such as the following will start selenium server in a virtual framebuffer, meaning the windows don't launch all over your screen!

However it can be useful to run the selenium server directly from the commandline to debug why a test has failed.

Diagnostic tools

Swap from using MySQLDatabase to DevMySQLDatabase in your DB config

Codeception

To hook codeception up for your project, you will need to create a codeception.yml config file at the top level of your project.

codeception.yml defines the paths of modules to be included in the test runs.

Within your module, you can then create a namespaced project specific set of tests to be included in that top level path.

Note that 'modulenamespace' can be anything, as long as it's a valid PHP namespace string

Next, create a new codeception.yml file that contains just your local environment codeception configuration; this will typically be the local URL for developer testing, ie

Update modulename/codeception/tests/functional.suite.xml and add a couple of modules

Update modulename/codeception/tests/_bootstrap.php to include the SilverstripFunctional helper

Update modulename/codeception/tests/unit/_bootstrap.php to set up the environment for unit testing:

Now, add the following to .gitignore

Include your module in the top level codeception.yml

And lastly, start writing tests! In modulename/codeception/tests/functional/FirstTestCept.php

In modulename/codeception/tests/unit/SmokeTest.php

From the top level of the project

$ ./vendor/bin/codecept run

A note on better buttons

Some of the in-built helper methods won't work if better buttons is installed. If this the case, add

\Symbiote\TestAssist\SilverstripeFunctional.use_better_buttons: true

in codeception.dist.yml


All versions of silverstripe-test-assist with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version >=3.1.7 <4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package symbiote/silverstripe-test-assist contains the following files

Loading the files please wait ....