Skip to content

Commit

Permalink
removed qodana; set up code coverage for sonar; renamed test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Nov 18, 2024
1 parent 34733d0 commit 5489104
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
- run: composer install --prefer-dist

- name: "Run Unit Tests"
run: vendor/bin/phpunit --coverage-clover=coverage.xml
run: composer test-coverage

- name: SonarQube Cloud Scan
uses: SonarSource/sonarcloud-github-action@master
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"ext-mbstring": "*"
},
"require-dev": {
"pds/skeleton": "^1.0",
"phalcon/ide-stubs": "^5.8",
"phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^10.5",
Expand Down
37 changes: 36 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions qodana.yaml

This file was deleted.

19 changes: 18 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
sonar.projectKey=phalcon_volt
sonar.organization=phalcon
sonar.tests=tests

sonar.sources=src/
sonar.exclusions=vendor/**,cv/**,tests/**
#sonar.inclusions=

# Source encoding
sonar.sourceEncoding=UTF-8

sonar.language=php

# Path to tests
sonar.tests=tests/
#sonar.test.exclusions=
#sonar.test.inclusions=
sonar.php.coverage.reportPaths=tests/support/coverage.xml

# Exclusions for copy-paste detection
#sonar.cpd.exclusions=
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Phalcon\Volt\Exception;
use PHPUnit\Framework\TestCase;

class CompileStringCest extends TestCase
final class CompileStringTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: compileString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Phalcon\Volt\Compiler;
use PHPUnit\Framework\TestCase;

final class ExpressionCest extends TestCase
final class ExpressionTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: expression()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Phalcon\Volt\Compiler;
use PHPUnit\Framework\TestCase;

class FunctionCallCest extends TestCase
final class FunctionCallTest extends TestCase
{
/**
* @dataProvider getExamples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Phalcon\Volt\Compiler;
use PHPUnit\Framework\TestCase;

final class SetOptionCest extends TestCase
final class SetOptionTest extends TestCase
{
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: setOption() - autoescape
Expand Down

0 comments on commit 5489104

Please sign in to comment.