Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EcomDev_PHPUnit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open
EcomDev_PHPUnit
Commits
75c27ef3
Commit
75c27ef3
authored
Feb 03, 2013
by
Ivan Chepurnyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
! Add coverage report for travis
parent
923dfd96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
.travis.phpunit.xml
.travis.phpunit.xml
+39
-0
.travis.yml
.travis.yml
+4
-1
No files found.
.travis.phpunit.xml
0 → 100644
View file @
75c27ef3
<?xml version="1.0"?>
<!-- initial phpunit configuration file, that you can modify for your project needs -->
<phpunit
cacheTokens=
"true"
colors=
"true"
convertErrorsToExceptions=
"true"
convertNoticesToExceptions=
"true"
convertWarningsToExceptions=
"true"
stopOnError=
"false"
stopOnFailure=
"false"
stopOnIncomplete=
"false"
stopOnSkipped=
"false"
strict=
"false"
verbose=
"false"
bootstrap=
"app/code/community/EcomDev/PHPUnit/bootstrap.php"
>
<listeners>
<listener
file=
"app/code/community/EcomDev/PHPUnit/Test/Listener.php"
class=
"EcomDev_PHPUnit_Test_Listener"
/>
</listeners>
<testsuite
name=
"Magento Test Suite"
>
<file>
app/code/community/EcomDev/PHPUnit/Test/Suite.php
</file>
</testsuite>
<filter>
<blacklist>
<!-- Exclude Magento Core files from code coverage -->
<directory
suffix=
".php"
>
app/code/core
</directory>
<!-- Exclude EcomDev_PHPUnit classes from code coverage -->
<directory
suffix=
".php"
>
app/code/community/EcomDev/PHPUnitTest
</directory>
<directory
suffix=
".php"
>
lib/Spyc
</directory>
<directory
suffix=
".php"
>
lib/vfsStream
</directory>
<!-- Exclude Mage.php file from code coverage -->
<file>
app/Mage.php
</file>
<!-- Exclude template files -->
<directory
suffix=
".phtml"
>
app/design
</directory>
<!-- Exclude Varien & Zend libraries -->
<directory
suffix=
".php"
>
lib/Varien
</directory>
<directory
suffix=
".php"
>
lib/Zend
</directory>
</blacklist>
</filter>
</phpunit>
.travis.yml
View file @
75c27ef3
...
...
@@ -12,15 +12,18 @@ before_script:
-
mkdir bin/ && wget -O bin/mage-ci -q https://raw.github.com/EcomDev/MageCI/master/bin/mage-ci --no-check-certificate
-
chmod +x bin/mage-ci
# Installing magento version with prepared DB dump
-
bin/mage-ci install tests/magento $MAGE magento -c -
t -
r http://mage-ci.ecomdev.org
-
bin/mage-ci install tests/magento $MAGE magento -c -r http://mage-ci.ecomdev.org
# Installing EcomDev_PHPUnit module
-
bin/mage-ci install-module tests/magento $(pwd)
# Configuring EcomDev_PHPUnit module
-
CURRENT_DIR=$(pwd)
-
cd tests/magento/shell
# Configuring test suite
-
php ecomdev-phpunit.php -a magento-config --db-name magento --same-db 1 --base_url http://test.magento.com/
-
php ecomdev-phpunit.php -a change-status --enable
-
php ecomdev-phpunit.php -a fix-autoloader
-
cd $CURRENT_DIR
# Copying phpunit.xml for travis builds
-
cp .travis.phpunit.xml tests/magento/phpunit.xml
script
:
-
bin/mage-ci phpunit tests/magento --colors --coverage-text
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment