30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-01 05:50:52 +00:00
weblinks/README.md

59 lines
2.1 KiB
Markdown
Raw Normal View History

2015-06-01 17:52:08 +00:00
# Weblinks for Joomla! [![Build Status](https://travis-ci.org/joomla-extensions/weblinks.svg?branch=master)](https://travis-ci.org/joomla-extensions/weblinks)
2014-02-09 18:40:10 +00:00
2015-04-10 21:41:28 +00:00
This repo is meant to hold the decoupled com_weblinks component and related code.
# Tests
To prepare the system tests (Selenium) to be run in your local machine you are asked to rename the file `tests/acceptance.suite.dist.yml` to `tests/acceptance.suite.yml`. Afterwards, please edit the file according to your system needs.
To run the tests please execute the following commands (for the moment only working in Linux and MacOS, for more information see: https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception):
```bash
$ composer install
$ vendor/bin/robo
$ vendor/bin/robo run:tests
```
2015-05-30 19:31:14 +00:00
2015-05-30 20:29:02 +00:00
##For Windows:
You need to install:
- Git for windows (https://msysgit.github.io/)
- GitHub for windows (https://windows.github.com/)
2015-10-29 13:43:21 +00:00
- Curl for Windows if necesssary.
2015-05-30 20:29:02 +00:00
Note: For commands line is better if you use the 'Git shell' program.
2015-05-30 20:29:02 +00:00
2015-10-29 13:43:21 +00:00
First you should create a fork of the official repository and clone the fork into your web server folder.
2015-05-30 19:31:14 +00:00
2015-10-29 13:43:21 +00:00
To prepare the system tests (Selenium) to be run in your local machine you are asked to rename the file `tests/acceptance.suite.dist.yml` to `tests/acceptance.suite.yml`. Afterwards, please edit the file according to your system needs.
The next step is only required if you don't place the weblinks folder into your web server folder. Create a symbolic link from your tests\joomla-cms3 to a subfolder of your web server. For example:
```bash
mklink /J C:\wamp\www\tests\joomla-cms3 C:\Users\Name\Documents\GitHub\weblinks\tests\joomla-cms3
```
Open the console and go in the folder of weblinks, for example:
```bash
cd C:\wamp\www\weblinks
```
Then run the command:
2015-05-30 19:31:14 +00:00
2015-10-29 13:43:21 +00:00
```bash
$ composer install
```
That will add all the dependencies for the testing of weblinks. You can then run the command:
```bash
$ php.exe vendor/codeception/codeception/codecept build
$ vendor/bin/robo run:tests
```
2015-05-30 19:31:14 +00:00
2015-10-29 13:43:21 +00:00
Once all tests are executed, you may also run a specific test:
```bash
$ vendor/bin/robo run:test // Then select the test you want to run!
```