How can I change test configuration type for a single test file?

I wanted to execute a single integration test class in my Grails project, so I followed the instructions "To run a Grails test" on https://www.jetbrains.com/idea/help/testing-grails-applications.html.
However I accidentally clicked on the option to run it as a JUnit test instead of as a Grails test. Now only the option to run it as JUnit test is shown anymore.
How can I change this back and change it to run as a Grails test?

0

Sorry for the late reply. You can delete the created run configuration (click on the combobox | Edit Configurations) and recreate it from scratch again.

0

I tried many times but failed 

0

  1. Identify the current test configuration type of the test file. This may be specified in a configuration file or in the code itself.
    Decide on the new test configuration type that you want to use for the test file. This may involve modifying the configuration file or the code.
    Modify the test file to use the new test configuration type. This may involve updating the import statements or modifying the test functions themselves.
    Run the test file using the new test configuration type to ensure that everything works as expected.

0

I attempted repeatedly but failed.

 

-----------

Eggy Car

0

This may involve updating the import statements or modifying the test functions themselves.

0

You can change the test configuration for a single test file e.g. rice purity test meaning in your Grails project by following these steps:

Open the test file you want to run.

Right-click on it in the project browser or in the source code window.

Select "Run 'TestFileName' with...".

In the menu that appears, select "Edit Configurations...".
Find the current configuration for the test file and change the test type from JUnit to Grails.
Save the changes and try running the test file again.
If you don't see the Grails option, make sure you have all the necessary Grails plugins installed in your IDE. Hope this helps!

0

Right-click on your test class file in the Project Explorer.
 

0

请先登录再写评论。