Molkobain
c8cb64db24
N°4739 - Remove precompiled themes unit test as they are no longer used since the introduction of DM classes style SCSS
2022-08-16 11:48:38 +02:00
Pierre Goiffon
5a37bc338a
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures on support/3.0 new tests
2022-04-22 16:04:54 +02:00
Molkobain
5f382ee053
Fix ThemeHandlerTest for file imports in a module
2021-12-20 15:56:58 +01:00
Molkobain
75d913a003
Compiler: Factorize DM classes style and add them to the DM CSS rules
2021-09-25 23:51:52 +02:00
Molkobain
7404599721
N°3882 - Fix unit tests
2021-09-23 14:16:22 +02:00
Molkobain
99026cec1f
N°3882 - Compiler: Prepare unit test for DM CSS rules (needs to be completed with the team)
2021-09-23 11:44:12 +02:00
odain
4d123e1450
fix ci
2021-06-22 10:00:18 +02:00
odain
3b3fa7b1f8
N°2982 - rename imports_utility and imports_variable in precompilation signature
2021-04-16 11:56:16 +02:00
odain
beadd9cd03
N°3593 - GetVariablesFromFile and precompilation signature fixes + tests
2021-04-13 23:42:53 +02:00
odain
903afff687
N°2982 - fix delta xml variables not used in themes
2021-04-12 22:14:00 +02:00
odain
49fe8d0a0f
N°2982 - small enhancement to fetch images in themes
2021-04-02 10:44:43 +02:00
Pierre Goiffon
e492d713c4
ThemeHandlerTest : add Windows compat
2021-04-02 10:39:09 +02:00
odain
77962d73eb
N°2982 - fix provided precompiled styles
2021-04-02 08:53:52 +02:00
odain
5816b22639
N°2982 - fix testthat validates provided precompiled stylesheets
2021-04-02 07:30:45 +02:00
odain
cb91d6f3c4
N°2982 - Speed up SCSS themes compilation during setup - fix infite loop when n signature inside precompiled file
2021-03-31 23:37:29 +02:00
Stephen Abello
1d0da38d40
N°3593 Fix file import variable usage in theme compilation
2021-03-24 11:29:43 +01:00
odain
7127c70ed6
N°2982 - Speed up SCSS themes compilation during setup - fix included files with same name and folder
2021-03-23 11:33:00 +01:00
odain
3afc4e8185
Merge branch 'feature/3588-precompil-fix' into develop
2021-03-15 17:44:10 +01:00
odain
4870893fc2
N°2982 - Speed up SCSS themes compilation during setup : fix precompiled css theme generated
2021-02-15 17:26:17 +01:00
odain
c36d650d61
N°2982 - Speed up SCSS themes compilation during setup : fix broken style 3.0 after setup
2021-02-15 15:20:31 +01:00
odain
71a65606a1
Revert "N°2982 - Speed up SCSS themes compilation during setup : take cascaded included imports in theme precompilation + class/method documentation cleanup"
...
This reverts commit c8dd19c22f .
2021-02-12 11:24:14 +01:00
odain
c8dd19c22f
N°2982 - Speed up SCSS themes compilation during setup : take cascaded included imports in theme precompilation + class/method documentation cleanup
2021-02-12 09:46:30 +01:00
Pierre Goiffon
a5d26b93e9
✅ ThemeHandlerTest : rename source files
...
They are used solely in the test. And the test does the SCSS compilation and compares the results to expected files. So changing anything in the test source SCSS and we need to change the expected results too ! This isn"t necessary...
But there were some confusions as the css/light-grey.scss file is modified very often, and one of the test source file has the same name !
Adding the prefix DO_NOT_CHANGE should avoid such errors in the future O:)
2020-12-15 16:24:31 +01:00
odain
4eebb538df
💚 add beforeSetup phpunit group to run test before setup
2020-10-14 18:09:23 +02:00
Molkobain
e48d257b00
Merge remote-tracking branch 'origin/develop' into feature/backoffice-full-moon-design
...
# Conflicts:
# application/ajaxwebpage.class.inc.php
# application/csvpage.class.inc.php
# application/displayblock.class.inc.php
# application/itopwebpage.class.inc.php
# application/utils.inc.php
# application/webpage.class.inc.php
# application/xmlpage.class.inc.php
# datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml
# datamodels/2.x/itop-knownerror-light/datamodel.itop-knownerror-light.xml
# datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml
# datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml
# js/components/breadcrumbs.js
# pages/navigator.php
# test/core/DBSearchTest.php
2020-10-07 11:36:15 +02:00
Pierre Goiffon
661d84fc77
✅ ThemeHandlerTest : fix tmp dir clean up
2020-09-24 14:17:08 +02:00
Pierre Goiffon
9eac12bd9c
Fix CSS precompilation signature check on non Linux OS
...
* fix images paths comparison
* fix MD5
Were depending on platform : \ThemeHandlerTest::testGetIncludedImages test passed on Linux, not on Windows due to different DIRECTORY_SEPARATOR
2020-09-24 12:38:16 +02:00
odain
d2e5e96a63
💚 fix remaining failed tests after merge
2020-09-09 06:52:09 +02:00
odain
b5cfd1c61e
💚 uncomment test
2020-09-08 11:36:42 +02:00
odain
7ab274cb7b
💚 fix test after merge
2020-09-08 09:21:06 +02:00
odain
9a0d9d2c38
Merge branch 'feature/fast-theme-compilation2' into develop
...
N°2982 - speedup themes/scss compilation during setup
N°2996 - Remove iTop version from css-variable.scss
2020-08-26 17:59:31 +02:00
odain
f5c8411a07
💚 ThemeHandlerTest: test fix + enhance failure messages
2020-08-26 12:09:55 +02:00
odain
a538e3c1a2
N°2996 Remove iTop version from css variables
...
- $version does not exit anymore in css-variables.css. now its value is computed during setup and equals setup timestamp instead.
- use precompiled files (declared in datamodels XML files) to check if theme compilation is required or not.
- referenced images in scss files are included in precompiled file signatures just like scss files md5sum.
- images declared in scss files with v=$version are reloaded automatically on browser side after each theme compilation (see xxx.png?v=timestamp)
- precompiled files are replaced if theme compilation occurred. this will avoid same time consuming operation at next setup.
- code cleanup: arrays / variables renamed
2020-08-14 17:03:16 +02:00
odain-cbd
7b8c390a80
Revert "Faster compilation of themes"
2020-08-07 16:20:12 +02:00
odain
ec0f726c26
💚 fix tests
2020-08-05 14:39:00 +02:00
odain
08414296b6
tmp work: save timestamp + few fixes
2020-07-21 23:22:50 +02:00
odain
307713d326
N°2996 - Remove iTop version from css-variable.scss
...
Include images in precompilation check
2020-07-16 18:41:55 +02:00
odain
2d8b888a18
N°2982 - speedup themes/scss compilation during setup
2020-07-16 18:41:01 +02:00
odain
4d3aefe2a4
fix all the tests
2020-06-11 21:29:03 +02:00
odain
c798e0a9cd
fix absolute path test failure
2020-06-08 16:56:29 +02:00
odain
1b9c7b7766
fix test failed due to different absolute paths
2020-06-08 15:32:57 +02:00
odain
19ee8e4071
add recurseMkdir
2020-06-08 14:49:16 +02:00
odain
4741012fb9
debug testcase failed
2020-06-08 11:26:12 +02:00
odain
f5886f603b
themehandler better test failure feedback
2020-06-08 10:57:57 +02:00
odain
7cad4ac444
adapt testValidatePrecompiledStyles
2020-06-04 22:47:50 +02:00
odain
b7ffa9e3c0
bug2996: include images in precompiled signature
2020-06-04 08:55:28 +02:00
odain
f88f321d79
avoid to read SCSS signature when no file touched and itop theme loading only + create parameters.json folder when necessary
2020-05-04 15:16:50 +02:00
odain
1457faa53a
add precompiled themes validation test
2020-05-04 14:15:33 +02:00
odain
0988c8ccbf
Mock compiler caller for test + Cover with tests + small css compilation fixes
2020-05-02 00:45:15 +02:00