WIP: Untested, solo caricati file di test
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/******************************************
|
||||
* Author : Riccardo Di Dato
|
||||
* Created On : Fri May 10 2019
|
||||
* File : TestFake.php
|
||||
*******************************************/
|
||||
|
||||
namespace ASD {
|
||||
use \PHPUnit\Framework\TestCase;
|
||||
|
||||
class TestFake extends TestCase {
|
||||
|
||||
public function testAdd() {
|
||||
$this->assertEquals(true,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ./config
|
||||
|
||||
# Create paths
|
||||
mkdir -p /home/asdynamics/private/$PROJECT_BUILDNAME
|
||||
mkdir -p /var/log/asdynamics/$PROJECT_BUILDNAME
|
||||
|
||||
# Copy stuff
|
||||
cp -r ./private/* /home/asdynamics/private/$PROJECT_BUILDNAME/
|
||||
@@ -0,0 +1,22 @@
|
||||
<phpunit bootstrap="test.inclusions.php">
|
||||
<testsuites>
|
||||
<testsuite name="core">
|
||||
<file>core/TestFake.php</file>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<!-- <whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">/home/asdynamics/private/mailqueue/lib/</directory>
|
||||
<exclude>
|
||||
<directory suffix="lib.inclusion.php">/home/asdynamics/private/mailqueue/lib/</directory>
|
||||
<directory suffix="lib.config.php">/home/asdynamics/private/mailqueue/lib/</directory>
|
||||
<directory >/home/asdynamics/private/mailqueue/lib/email/</directory>
|
||||
<file >/home/asdynamics/private/mailqueue/lib/lib.inclusions.php</file>
|
||||
<file >/home/asdynamics/private/mailqueue/lib/lib.configs.php</file>
|
||||
</exclude>
|
||||
</whitelist> -->
|
||||
</filter>
|
||||
<logging>
|
||||
<log type="coverage-html" target="/tmp/htmlreport/report.html" lowUpperBound="35" highLowerBound="70"/>
|
||||
</logging>
|
||||
</phpunit>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
require_once("/testasdphp/test.inclusions.php");
|
||||
|
||||
$buildName = getenv("ASD_BUILDNAME");
|
||||
require_once("/home/asdynamics/private/$buildName/lib/lib.inclusions.php");
|
||||
|
||||
require_once(dirname(__FILE__)."/utility/lib.inclusions.php");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/*
|
||||
* lib.inclusions.php
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 09 apr 2019
|
||||
*/
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user