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
8b2723a3
Commit
8b2723a3
authored
Oct 15, 2014
by
Ivan Chepurnyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add possibility to disable unit tests for particular modules, if they tests are silently failing
parent
975be950
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
app/code/community/EcomDev/PHPUnit/Test/Suite.php
app/code/community/EcomDev/PHPUnit/Test/Suite.php
+6
-0
app/code/community/EcomDev/PHPUnit/etc/config.xml
app/code/community/EcomDev/PHPUnit/etc/config.xml
+2
-0
No files found.
app/code/community/EcomDev/PHPUnit/Test/Suite.php
View file @
8b2723a3
...
...
@@ -50,6 +50,8 @@ class EcomDev_PHPUnit_Test_Suite extends PHPUnit_Framework_TestSuite
$suite
=
new
self
(
'Magento Test Suite'
);
$excludedModules
=
Mage
::
getConfig
()
->
getNode
(
'phpunit/suite/exclude'
);
// Walk through different groups in modules for finding test cases
foreach
(
$groups
->
children
()
as
$group
)
{
foreach
(
$modules
->
children
()
as
$module
)
{
...
...
@@ -59,6 +61,10 @@ class EcomDev_PHPUnit_Test_Suite extends PHPUnit_Framework_TestSuite
continue
;
}
if
(
isset
(
$excludedModules
->
{
$module
->
getName
()}))
{
continue
;
}
$moduleCodeDir
=
Mage
::
getBaseDir
(
'code'
)
.
DS
.
(
string
)
$realModule
->
codePool
;
$searchPath
=
Mage
::
getModuleDir
(
''
,
$module
->
getName
())
.
DS
.
'Test'
.
DS
.
(
string
)
$group
;
...
...
app/code/community/EcomDev/PHPUnit/etc/config.xml
View file @
8b2723a3
...
...
@@ -55,6 +55,8 @@
</global>
<phpunit>
<suite>
<modules
/>
<!-- List of modules included into test suite -->
<exclude
/>
<!-- List of modules that are excluded from test suite -->
<yaml>
<model>
ecomdev_phpunit/yaml_loader
</model>
<loaders>
...
...
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