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
Decide on a solution for regression testing #179
Comments
I think that the code for this plugin need a serious revision/rewrite, but before that we really need tests. After a quick search I found some plugins that use Ruby gem 'vimrunner' for testing. But I agree that our tests should better be node-based. Does anyone know of any vimrunner-like npm modules? The closest thing I found: https://github.com/pose/node-remote-vim, but it is, apparently, misses some needed features, like command execution, and the README says that is only supported on OS X. Anyway, I don't think that it will be very difficult to implement it from scratch, or based on pose's implementation. |
It'd be great if this project got some tests in place. It seems like there's not been much or any activity on this in a while, though. Would you accept a PR, perhaps based on what's presented in #254? |
when this issue was created indentation was in a terrible state. if you believe it is in need of some sort of javascript based testing, how could this improve our development? I personally have a file which i use for testing the bugs and new additions, while i make changes all i need to do is |
What motivated me to comment here is the fact that I've been bouncing around various commits of vim-javascript trying to find one which indented all of my code correctly. v1.0.0 almost got it right for me, but didn't handle multiline comments correctly. The other commits I tried each seemed to fix one thing but break something else. I don't care whether or not the testing is JavaScript based; I'm simply in favour of any automated tests. At the very least, why not add this file that you personally use for testing to the repository, so that contributors can use it to verify that their fixes don't cause any regressions? |
#435 (comment) |
Gonna close #254 because it's related to this one, but leaving a ref here since it had some good ideas. |
I've been meaning to get a PR together for this. It'd be similar to what was suggested in #254, except it'd just use a simple bash script. This means no extra dependencies on node, etc. It'd even be possible to have it run in TravisCI. |
Closing this due to lack of activity. We can always re-open if the discussion gets rolling again. |
As per the discussion in #178, I'd like to open a dialogue about maintaining regression tests for this project. @gabrielelana fronted some great ideas, and it seems having some test coverage would be both doable and very helpful.
I think it's safe to say that an ideal solution would be node-based, npm-installable, and well-maintained. Some cursory research turned up jasmine-node, which looks promising. I'll look into the viability of putting it to use for this project, and I encourage other interested devs to do the same, or to add their thoughts to the discussion here.
The text was updated successfully, but these errors were encountered: