Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests #586

Merged
merged 33 commits into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b3795bc
Initial commit with support for phpunit html output and first attempt…
dsilhavy Jun 12, 2022
5b061a9
Test action
dsilhavy Jun 12, 2022
88a4d44
Test action
dsilhavy Jun 12, 2022
56fab64
Test action
dsilhavy Jun 12, 2022
dd99114
Test action
dsilhavy Jun 12, 2022
9d5ab2e
Test action
dsilhavy Jun 12, 2022
bd3072d
Test action
dsilhavy Jun 12, 2022
a2d0a35
Test action
dsilhavy Jun 12, 2022
1266145
Test action
dsilhavy Jun 12, 2022
fb11dca
Test action
dsilhavy Jun 12, 2022
9d1d515
Exclude vendor directory
dsilhavy Jun 12, 2022
98186c5
Test Github workflow
dsilhavy Jun 29, 2022
d1533d9
Test Github workflow
dsilhavy Jun 29, 2022
44e26dd
Test Github workflow
dsilhavy Jun 29, 2022
8030845
Test Github workflow
dsilhavy Jun 29, 2022
8846fbf
Test Github workflow
dsilhavy Jun 29, 2022
4546d39
Test Github workflow
dsilhavy Jun 29, 2022
6dfefff
Test Github workflow
dsilhavy Jun 29, 2022
1ac1aeb
Test Github workflow
dsilhavy Jun 29, 2022
a781c15
Test Github workflow
dsilhavy Jun 29, 2022
8b2ee68
Test Github workflow
dsilhavy Jun 29, 2022
8d74c1f
Test Github workflow
dsilhavy Jun 29, 2022
1888f1e
Test Github workflow
dsilhavy Jun 29, 2022
afd3d2a
Test Github workflow
dsilhavy Jun 29, 2022
8552eb4
Test Github workflow
dsilhavy Jun 29, 2022
0938683
Test Github workflow
dsilhavy Jun 29, 2022
c828060
Test Github workflow
dsilhavy Jun 29, 2022
e7ab95a
Test Github workflow
dsilhavy Jun 29, 2022
ff96cee
Test Github workflow
dsilhavy Jun 29, 2022
ebc9794
Test Github workflow
dsilhavy Jun 29, 2022
d8a3968
Test Github workflow
dsilhavy Jun 29, 2022
cf20257
Test Github workflow
dsilhavy Jun 29, 2022
694d6e9
Change default branch of unit test job
dsilhavy Jun 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/unit_test_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: unit-test-coverage

on:
push:
branches:
- 'development'

jobs:
unit-test:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- name: Checkout out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Composer
uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
continue-on-error: true
with:
bootstrap: vendor/autoload.php
configuration: ./phpunit.xml
php_version: 7.4.3
memory_limit: 1024M
version: 9.5.20
php_extensions: xdebug
env:
XDEBUG_MODE: coverage
- name: Deploy Results
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: html-reports
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
target-folder: unit-tests
commit-message: Upload latest unit test results
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ Conformance-Frontend/temp
*log*.txt
vendor/*
html-log/*
.idea
html-coverage
.phpunit.cache

2 changes: 1 addition & 1 deletion CMAF/CTAWAVE/UnitTests/MediaProfilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

declare(strict_types=1);
require_once '../CTAWAVE_SelectionSet.php';
require_once __DIR__.'/../CTAWAVE_SelectionSet.php';

use PHPUnit\Framework\TestCase;

Expand Down
6 changes: 3 additions & 3 deletions CMAF/CTAWAVE/UnitTests/PresentationProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
*/

declare(strict_types=1);
require_once '../CTAWAVE_SelectionSet.php';
require_once '../CTAWAVE_PresentationProfile.php';
include(dirname(__FILE__)."/../../../Utils/Load.php");
require_once __DIR__.'/../CTAWAVE_SelectionSet.php';
require_once __DIR__.'/../CTAWAVE_PresentationProfile.php';
require_once __DIR__.'/../../../Utils/Load.php';

use PHPUnit\Framework\TestCase;

Expand Down
8 changes: 4 additions & 4 deletions CMAF/CTAWAVE/UnitTests/ProgramsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* and open the template in the editor.
*/
declare(strict_types=1);
require_once '../CTAWAVE_Programs.php';
require_once '../CTAWAVE_PresentationProfile.php';
require_once '../CTAWAVE_SelectionSet.php';
include(dirname(__FILE__)."/../../../Utils/Load.php");
require_once __DIR__.'/../CTAWAVE_Programs.php';
require_once __DIR__.'/../CTAWAVE_PresentationProfile.php';
require_once __DIR__.'/../CTAWAVE_SelectionSet.php';
require_once __DIR__.'/../../../Utils/Load.php';

use PHPUnit\Framework\TestCase;

Expand Down
4 changes: 2 additions & 2 deletions CMAF/CTAWAVE/UnitTests/SelectionSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*/

declare(strict_types=1);
require_once '../CTAWAVE_SelectionSet.php';
include(dirname(__FILE__)."/../../../Utils/Load.php");
require_once __DIR__.'/../CTAWAVE_SelectionSet.php';
require_once __DIR__.'/../../../Utils/Load.php';

use PHPUnit\Framework\TestCase;

Expand Down
4 changes: 2 additions & 2 deletions CMAF/CTAWAVE/UnitTests/SpliceConstraintsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

declare(strict_types=1);
require_once '../CTAWAVE_BaselineSpliceChecks.php';
include(dirname(__FILE__)."/../../../Utils/Load.php");
require_once __DIR__.'/../CTAWAVE_BaselineSpliceChecks.php';
require_once __DIR__.'/../../../Utils/Load.php';

use PHPUnit\Framework\TestCase;

Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"require-dev": {
"phpunit/phpunit": "^9"
"ext-curl": "*",
"ext-dom": "*",
"ext-json": "*",
"ext-sqlite3": "*",
"phpunit/phpunit": "9.5.20"
}
}
Loading