Skip to content

Define an empty test:prepare task  #2610

Open
@simmerz

Description

@simmerz

Gems like tailwindcss-rails and jsbundling-rails run their respective build tasks by hooking in to test:prepare which is defined as an empty task in the Test Unit railtie.

It would be helpful to define the same empty task if it's not already defined to allow those and other gems to perform their build tasks ahead of testing, rather than forcing the user to precompile assets. If the user is forced to precompile ahead of tests, then the suite needs to clobber them after running, otherwise the user becomes confused when future changes have no impact because the local development Rails app is loading the compiled assets rather than those in app/assets/build.

Would you be happy to accept a PR that adds a similar empty task as that defined here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions