Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
example-magento2-project-testing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MET Public
example-magento2-project-testing
Commits
97ea4872
Commit
97ea4872
authored
Nov 28, 2019
by
Vadim Justus
Browse files
Options
Downloads
Patches
Plain Diff
Add unittest example
parent
9679389d
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#540
passed
Nov 28, 2019
Stage: unit-tests
Stage: integration-tests
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+31
-0
31 additions, 0 deletions
.gitlab-ci.yml
phpunit.unit.xml
+36
-0
36 additions, 0 deletions
phpunit.unit.xml
with
67 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
31
−
0
View file @
97ea4872
stages
:
-
unit-tests
-
integration-tests
# Unit Tests #
unit-tests
:
stage
:
unit-tests
tags
:
-
php72
variables
:
EXECUTOR_SUITE
:
project-unit
before_script
:
-
~/.composer/vendor/met/test-executor/run.sh setup
script
:
-
~/.composer/vendor/met/test-executor/run.sh tests
after_script
:
-
~/.composer/vendor/met/test-executor/run.sh cleanup
# Integration Tests #
integration-tests
:
stage
:
integration-tests
tags
:
-
php72
variables
:
EXECUTOR_SUITE
:
project-integration
before_script
:
-
~/.composer/vendor/met/test-executor/run.sh setup
script
:
-
~/.composer/vendor/met/test-executor/run.sh tests
after_script
:
-
~/.composer/vendor/met/test-executor/run.sh cleanup
This diff is collapsed.
Click to expand it.
phpunit.unit.xml
0 → 100644
+
36
−
0
View file @
97ea4872
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<phpunit
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://schema.phpunit.de/6.2/phpunit.xsd"
colors=
"true"
columns=
"max"
beStrictAboutTestsThatDoNotTestAnything=
"false"
bootstrap=
"src/dev/tests/unit/framework/bootstrap.php"
>
<testsuite
name=
"MET Unit Tests"
>
<directory
suffix=
"Test.php"
>
src/app/code/Met/*/Test/Unit
</directory>
</testsuite>
<php>
<ini
name=
"date.timezone"
value=
"America/Los_Angeles"
/>
<ini
name=
"xdebug.max_nesting_level"
value=
"200"
/>
</php>
<listeners>
<listener
class=
"Magento\Framework\TestFramework\Unit\Listener\ReplaceObjectManager"
/>
</listeners>
<!-- Code Coverage Whitelist -->
<filter>
<whitelist
processUncoveredFilesFromWhitelist=
"true"
>
<directory
suffix=
".php"
>
src/app/code/Met/*
</directory>
<exclude>
<directory
suffix=
".php"
>
src/app/code/Magento
</directory>
<directory
suffix=
".php"
>
src/app/code/Met/*/Test
</directory>
<directory
suffix=
"registration.php"
>
src/app/code/*/*
</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment