Skip to content

Conversation

@nickvergessen
Copy link
Member

Signed-off-by: Joas Schilling [email protected]

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no phpunit here?

@come-nc
Copy link
Contributor

come-nc commented Apr 4, 2022

There are unit test but no phpunit in CI, I will add it.

@come-nc come-nc self-assigned this Apr 4, 2022
come-nc added 4 commits April 4, 2022 10:37
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
@nickvergessen
Copy link
Member Author

Run ./vendor/phpunit/phpunit/phpunit -c ./tests/phpunit.xml
PHP Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /home/runner/work/privacy/privacy/apps/privacy/tests/bootstrap.php on line 16
PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='/home/runner/work/privacy/privacy/3rdparty/pear/archive_tar:/home/runner/work/privacy/privacy/3rdparty/pear/console_getopt:/home/runner/work/privacy/privacy/3rdparty/pear/pear-core-minimal/src:/home/runner/work/privacy/privacy/3rdparty/pear/pear_exception:/home/runner/work/privacy/privacy/apps') in /home/runner/work/privacy/privacy/apps/privacy/tests/bootstrap.php on line 16
Error: Process completed with exit code 255.

@nickvergessen
Copy link
Member Author

Added the summaries as required

Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc force-pushed the update-master-php-testing-versions branch from 0cb5d33 to 944cc5f Compare April 4, 2022 11:42
@nickvergessen
Copy link
Member Author

  1. OCA\Privacy\Tests\Unit\Controller\PageControllerTest::testIndex
    Error: Class 'OCA\Privacy\Controller\PageController' not found

The test files look pretty broken, maybe that is why it wasn't run at all :D

@come-nc
Copy link
Contributor

come-nc commented Apr 4, 2022

  1. OCA\Privacy\Tests\Unit\Controller\PageControllerTest::testIndex
    Error: Class 'OCA\Privacy\Controller\PageController' not found

The test files look pretty broken, maybe that is why it wasn't run at all :D

PageControllerTest is the only non-empty test and there is no PageController class in the app 🤔

@nickvergessen
Copy link
Member Author

rm -rf tests/* ?

@come-nc
Copy link
Contributor

come-nc commented Apr 4, 2022

rm -rf tests/* ?

If you commit it I approve it :-P

Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
@come-nc come-nc force-pushed the update-master-php-testing-versions branch from fc3a8a1 to 02d030d Compare April 4, 2022 14:57
Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc force-pushed the update-master-php-testing-versions branch from 02d030d to f821c48 Compare April 4, 2022 15:20
Signed-off-by: Joas Schilling <[email protected]>
@nickvergessen
Copy link
Member Author

Works now, last sign of approval? @come-nc

@come-nc
Copy link
Contributor

come-nc commented Apr 5, 2022

No integration tests are not run.

@come-nc
Copy link
Contributor

come-nc commented Apr 5, 2022

The workflow is not valid. .github/workflows/phpunit-mysql.yml (Line: 82, Col: 9): Unexpected value 'working-directory' .github/workflows/phpunit-mysql.yml (Line: 95, Col: 9): Unexpected value 'working-directory'
Show more

😞

@come-nc come-nc force-pushed the update-master-php-testing-versions branch from 90e72ff to e555ac0 Compare April 5, 2022 07:01
@come-nc
Copy link
Contributor

come-nc commented Apr 5, 2022

Finally 🥳 🎆

@nickvergessen nickvergessen merged commit c08f04c into master Apr 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the update-master-php-testing-versions branch April 5, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants