Laurent Destailleur
2be848025f
Fix parameter withcode of currency_name function. Add PHPUnit tests
2017-06-26 10:09:22 +02:00
Laurent Destailleur
a3eef35ce6
Fix travis error
2017-05-22 01:19:16 +02:00
Laurent Destailleur
f8403d5020
Fix phpunit test
2017-05-12 20:01:45 +02:00
Laurent Destailleur
fa290c34fa
Fix against SQL injection. Add phpunit to detect missing escapement.
2017-05-12 16:55:11 +02:00
Laurent Destailleur
8c07f514c8
Add php unit tests on expense reports
2017-04-14 16:51:30 +02:00
Laurent Destailleur
d1d1b824b4
Better coding of #5181 . I removed need of external lib.
2016-05-13 20:20:48 +02:00
Laurent Destailleur
bd91f327b8
Merge remote-tracking branch 'origin/3.8' into develop
...
Conflicts:
.travis.yml
htdocs/filefunc.inc.php
2015-12-19 01:38:22 +01:00
Laurent Destailleur
298396a57e
Merge remote-tracking branch 'origin/3.7' into 3.8
...
Conflicts:
test/phpunit/AllTests.php
2015-12-19 01:27:19 +01:00
Laurent Destailleur
a136e90749
Fix travis
2015-12-19 01:06:11 +01:00
Raphaël Doursenaud
bbe7498de6
Better Travis CI
...
NEW:
Cleaned up routines for better readability of both declaration and results.
PHP versions now really covered.
The old code forced install of PHP and didn't use Travis provided versions.
This resulted in the process not being executed with the declared PHP version.
Dropped MySQL in favor of MariaDB.
This is now the FLOSS community standard.
This should help avoid problems with buggy MySQL releases.
Fast finish enabled to show results faster.
Optimized tools installation with composer.
The right version of the tool is installed for the PHP version under test.
New PHP linter to check for syntax errors.
Parallelized for better speed.
Apache + PHP FPM for testing webservices.
The previous mod_php configuration was not supported on Travis.
New global DEBUG environment variable to show verbose output with configuration files content.
IRC notification on #dolibarr@freenode for community awareness.
FIXES:
Bug in scripts preventing execution with environmentalized PHP.
Wrong detection of MAIN_URL_ROOT under specific circumstances.
$_SERVER["DOCUMENT_ROOT"] empty and $_SERVER["SCRIPT_NAME"] populated.
Relative ignore directive in coding style ruleset to avoid bypassing test.
Unit test errors without an exit status.
This prevented the CI from properly detecting and reporting the error.
TODOS:
PostgreSQL support.
This one is tricky since we only have a MySQL dump and the syntax is not directly compatible.
SQLite support.
Disabled in core at the moment.
Nginx + PHP FPM support.
Test webservices on the second most popular webserver.
Run dev/* checks.
We have a nice collection of scripts we could leverage.
Check Javascript.
Check CSS.
Check SQL.
2015-12-13 21:34:36 +01:00
Laurent Destailleur
7f75a3da9d
NEW On list of thirdparties, user can select fields to show.
...
Make phpunit test working again localy.
Add missing columns into llx_expedition.
2015-10-15 03:29:35 +02:00
Laurent Destailleur
6b15cafb4e
Add protection to request some module to be on for AllTests
2015-04-22 21:38:34 +02:00
Laurent Destailleur
22921ad26b
Fix phpunit
2015-04-19 04:43:28 +02:00
Laurent Destailleur
c9b569ad1a
Fix calculation of PMP of product.
...
Also add phpunit test to avoid this in future.
2015-03-21 15:31:11 +01:00
Laurent Destailleur
4f9aef6150
Fix calculation of PMP of product.
...
Also add phpunit test to avoid this in future.
2015-03-21 15:29:23 +01:00
Laurent Destailleur
6d3834b3b9
Merge remote-tracking branch 'origin/3.7' into develop
...
Conflicts:
htdocs/compta/prelevement/class/bonprelevement.class.php
htdocs/index.php
htdocs/projet/class/project.class.php
test/phpunit/BankAccountTest.php
2015-02-23 14:59:24 +01:00
Laurent Destailleur
9e078b32d2
Fixes the way the RUM number is generated. Start phpunit test.
2015-02-20 18:35:52 +01:00
frederic34
73fda2cb86
WIP PSR2
2015-01-08 18:36:03 +01:00
Laurent Destailleur
dad82fa1fa
Fix: bad phpunit test case
2014-09-24 01:36:12 +02:00
Florian HENRY
3602155c5e
Fix FicheInterTest Call
2014-09-20 10:28:59 +02:00
Laurent Destailleur
ad8b92541d
Fix: sql request with pgsql
...
Fix: bug reported by scrutinizer
Doxygen
Start to work on multi user assigned to an event.
2014-09-20 00:57:29 +02:00
Raphaël Doursenaud
c48c3a9d91
Qual: remove PHP closing tag (again)
...
These were reintroduced by careless merge
2014-05-26 13:51:25 +02:00
Laurent Destailleur
2bac66fd52
Merge remote-tracking branch 'origin/3.5' into develop
2014-05-10 19:53:06 +02:00
Laurent Destailleur
1b25fdc323
Fix: Param at wrong place.
...
Fix: Add warning if phpunit are runned with external module on.
2014-05-08 18:09:39 +02:00
Laurent Destailleur
f5b0651809
New: Add webservcie to delete a product.
...
Qual: More webservices in phpunit.
2014-05-02 16:47:54 +02:00
Laurent Destailleur
876a35d1a1
Fix phpunit to be compatible with new version of phpunit
2014-05-02 00:08:19 +02:00
Laurent Destailleur
8b1dae29f7
Try to test without AutoLoad that make travis fails.
2014-05-01 16:38:41 +02:00
Laurent Destailleur
e7e5a93906
Qual: More PHPUnit tests
2014-03-17 15:01:47 +01:00
Laurent Destailleur
bdb2b7a547
Merge remote-tracking branch 'origin/3.5' into develop
...
Conflicts:
htdocs/projet/index.php
test/phpunit/FunctionsTest.php
2014-03-13 09:20:05 +01:00
Laurent Destailleur
7684e9e4f7
Fix: Add PHPUnit test to check main.lang files does not contains rubish
...
values for keys SeparatorXXX
Fix: Add PHPUnit test to check main.lang files does not contains rubish
values for keys FormatDateShortJaxaXXX
2014-03-11 23:39:26 +01:00
Laurent Destailleur
a0e0d17725
Qual: More PHP unit to test dol_escapejs function.
...
Qual: More PHP unit to test FormAdmin class.
2014-02-17 15:40:04 +01:00
Laurent Destailleur
b37aec2027
Fix: bad include
2013-12-16 14:43:16 +01:00
Laurent Destailleur
c1ee59eef9
Qual: Add phpunit tests for margin lib
2013-12-16 14:10:52 +01:00
Laurent Destailleur
33b4c9fad7
Fix: Bug into xcal decode
2013-10-18 10:38:59 +02:00
Laurent Destailleur
3d62303d59
Merge remote-tracking branch 'origin/3.4' into develop
...
Conflicts:
ChangeLog
build/debian/get-orig-source.sh
build/debian/watch
htdocs/fourn/ajax/getSupplierPrices.php
2013-09-19 01:02:53 +02:00
Laurent Destailleur
a1e7333613
Fix: bug preventing creation of predefined invoice.
...
Also added phpunit test to detect it if it occurs again.
2013-09-16 13:42:42 +02:00
Laurent Destailleur
89ee79f5cf
New: Implement same rule for return value of all command line scripts (0
...
when success, <>0 if error).
2013-06-09 14:40:33 +02:00
Laurent Destailleur
89365786a8
New: enhance tool fixdosfiles.sh
...
Convert DOS files to unix
2013-03-30 14:27:13 +01:00
Laurent Destailleur
3e5ee3b00a
Fix: PHPUnit tests are back.
2013-03-09 18:55:57 +01:00
Laurent Destailleur
eff675793d
Qual: Show skeletons to add phpunit for webservices
2013-03-01 23:51:36 +01:00
Laurent Destailleur
060edf21da
New: Add more PHPUnit tests to prepare removal of adodb.
2013-01-18 15:54:40 +01:00
Laurent Destailleur
8d206fdfb0
Prepare move to other licence. For the moment all answers for licence
...
upgrade were not yet received. So we prepare for GPL by uniformizing
licence text keys to GPL-3+. Will move later to AGPL if all answers are
positive.
2013-01-16 15:36:08 +01:00
Regis Houssin
b838895db9
Fix: change for a neutral email
2012-12-30 15:13:49 +01:00
Laurent Destailleur
ca6e9643ea
Fix: Pb in json function for objects
2012-12-29 12:21:13 +01:00
Laurent Destailleur
bbeab3e098
A PHPUnit test was successfull must never be removed. Creating
...
such test is useless if we removed them when they report error. When an
error is reported, the PHPUnit error must be kept until the code is
fixed (regression) or until the test is fixed (if code has changed
in a not compatible way, should be rare). But test must not be
removed. The error must be reported until fixed.
2012-12-03 20:26:27 +01:00
Regis Houssin
b5d4a16f1b
FIXME shiittttt
2012-12-03 11:24:30 +01:00
Laurent Destailleur
7fac6b65f6
Fix: Fix for compatibility with previous version and for case "@=".
...
Qual: Add a lot of phpunit tests to validate all get_next_value()
cases.
2012-09-23 16:25:08 +02:00
Regis Houssin
6f1651309e
Fix: global converting lines delimiter
2012-07-02 19:30:37 +02:00
Laurent Destailleur
018cafe92c
Fix: Add an unsecape function to decode javascript escape
...
encoding. This also fix ecm for cyrillic chars.
2012-06-24 19:32:19 +02:00
Regis Houssin
d061025955
Fix: rename and include unit test
2012-06-20 22:19:03 +02:00