Skip to content

Commit

Permalink
#53 - Unit Test complete reset (all green or commented now)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 20, 2024
1 parent 448440a commit fe28b3c
Show file tree
Hide file tree
Showing 82 changed files with 5,489 additions and 7,767 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ composer.lock
/.build/


/tmp/
10 changes: 0 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,20 @@ pretest:
composer --ansi --no-interaction update
php -f tests/PrepareForTest.php

phpunit:
composer update
vendor/bin/phpunit --bootstrap testing/bootstrap.php

deb:
dpkg-buildpackage -A -us -uc

rpm:
rpmdev-bumpspec --comment="Build" --userstring="Vítězslav Dvořák <info@vitexsoftware.cz>" flexipeehp.spec
rpmbuild -ba flexipeehp.spec

verup:
git commit debian/composer.json debian/version debian/revision -m "`cat debian/version`-`cat debian/revision`"
git push origin master

release:
echo Release v$(nextversion)
dch -v $(nextversion) `git log -1 --pretty=%B | head -n 1`
debuild -i -us -uc -b
git commit -a -m "Release v$(nextversion)"
git tag -a $(nextversion) -m "version $(nextversion)"



dimage:
docker build -t vitexsoftware/flexipeehp .

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"autoload-dev": {
"psr-4": {
"Test\\Ease\\": "vendor/vitexsoftware/ease-core/tests/src/Ease",
"Test\\AbraFlexi\\": "test/src/AbraFlexi/",
"Test\\": "test/"
"Test\\AbraFlexi\\": "tests/src/AbraFlexi/",
"Test\\": "tests/"
}
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="./test/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/AbraFlexi</directory>
</include>
</coverage>
<testsuites>
<testsuite name="all">
<directory>./test</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
<!-- logging>
Expand Down
4 changes: 2 additions & 2 deletions src/AbraFlexi/RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ class RO extends \Ease\Sand
/**
* Class for read only interaction with AbraFlexi.
*
* @param mixed $init default record id or initial data. See processInit()
* @param array<string, string> $options Connection settings and other options override
* @param mixed $init default record id or initial data. See processInit()
* @param array<string, int|string|true> $options Connection settings and other options override
*/
public function __construct($init = null, $options = [])
{
Expand Down
41 changes: 0 additions & 41 deletions tests/AbraFlexi/ActionsTest.php

This file was deleted.

221 changes: 0 additions & 221 deletions tests/AbraFlexi/AdresarTest.php

This file was deleted.

Loading

0 comments on commit fe28b3c

Please sign in to comment.