New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing story? #34

Closed
henrik opened this Issue Jan 4, 2018 · 5 comments

Comments

Projects
None yet
5 participants
@henrik
Copy link

henrik commented Jan 4, 2018

Do you have any thoughts on testing Stimulus controllers? Do you tend to unit test them in part or whole? Or rely on integrated feature tests that incorporate JS?

@javan

This comment has been minimized.

Copy link
Contributor

javan commented Jan 4, 2018

We hope to provide a baked-in solution for 1.0 that may look something like #7. And, of course, you can use your application's existing test rig. We write high level feature tests using http://guides.rubyonrails.org/testing.html#system-testing.

@henrik

This comment has been minimized.

Copy link

henrik commented Jan 4, 2018

@javan, thank you very much!

@henrik henrik closed this Jan 4, 2018

@sstephenson

This comment has been minimized.

Copy link
Contributor

sstephenson commented Feb 6, 2018

Quick update on testing.

We introduced the @stimulus/test package in version 1.0.0: #58

It’s currently undocumented but used internally by other @stimulus packages. You can review their test suites here:

You can use this library to test your applications right now. The API is stable. What we haven’t done yet is polish the experience around setting up and invoking Karma.

@borislemke

This comment has been minimized.

Copy link

borislemke commented Oct 17, 2018

@sstephenson It's been a while since this was posted, I was wondering if there was an update to the testing's suite documentation? I could not find a reference to it in your repo / handbook site.

@nogtini

This comment has been minimized.

Copy link

nogtini commented Jan 3, 2019

Happy new year! Any updates on this? It looks like there was a planned test harness for 1.1 that didn't make the cut (https://discourse.stimulusjs.org/t/what-s-planned-for-stimulus-1-1/144).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment