Problems running integration tests?

If you run the Foreman integration tests locally and noticed that they are mysteriously failing, well, that’s because of a recent change[1] that was merged.

The change involved the removal of the webpack:try_compile rake task as it was found to be unnecessary when running tests - and in general. The upside is that Katello and Foreman developers will enjoy slightly faster test runs (especially via Jenkins) because webpack isn’t being compiled unnecessarily.

The downside is that before running integration tests locally you’ll need to compile the webpack assets: bundle exec rake webpack:compile and you should be good to go.

Let me know if you see anything out of the ordinary as a result of this change!



Do we want to do the webpack compilation step as a dependant rake action? I guess that is the only proper solution although it will make tests much slower. We should probably allow a way to skip the compilation for quick runs, but this should be explicit (you know what you are doing).

It already is, but plugins add all their tests to jenkins:unit rather than properly splitting them out.

The proper solution would be to split it out in plugins as well.

1 Like