Rider Action Test Example required

Answered

Hi I am building a Rider plugin, and want to test my Actions.
Apparently testing in a Rider plugin is different than testing in Intellij, and we need to use TestNG instead.
I've attempted to use TestNG and the base testing class 

BaseTestWithSolution

but I can't get a simple test to run properly at all.

I lack any documentation about how to setup these tests, and troubleshoot them, and there are no community examples to learn from. Most of the examples specified in the SDK docs don't even have tests! This seems crazy.

This community really needs concrete examples to learn from in testing Rider plugins.

1 comment
Comment actions Permalink

I can't get a simple test to run properly at all.

Could you please clarify what are you doing and what the issues are? If everything's set up correctly, ./gradlew test should run the tests (the same as with JUnit, actually).

I lack any documentation about how to setup these tests, and troubleshoot them, and there are no community examples to learn from.

Unfortunately, this is (mostly) a correct description of the current situation around Rider frontend tests. But we are working on some improvements. Some code samples are available:

I understand that these samples leave a lot of room for improvement, but they should at least unblock you from running the tests and setting up the base test infrastructure.

Does that help at least a bit? Feel free to ask any additional questions!

0

Please sign in to leave a comment.