bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
193 stars 91 forks source link

Less not compiled in Grails 3.3.12 functional tests #271

Open azavisha-snap opened 3 years ago

azavisha-snap commented 3 years ago

Steps to reproduce:

Expected result:

Actual result:

Note that everything works fine in bootRun mode. The issue is only with functional tests.

Tried versions of asset-pipeline from 2.15.1 to 3.2.4. Same result in all of them.

azavisha-snap commented 3 years ago

This is a very big problem that broke most of our functional tests after upgrading to Grails 3.

I believe the issue is that the following line does not do what it is supposed to in integration/functional tests:

assets "com.bertramlabs.plugins:less-asset-pipeline:2.15.1"

Replacing the assets scope/configuration with runtime like so seems to help:

runtime "com.bertramlabs.plugins:less-asset-pipeline:2.15.1"
azuledu commented 3 years ago

Adding testCompile "com.bertramlabs.plugins:less-asset-pipeline:2.15.1" works