pi314 / ime-phonetic.vim

An phonetic input method plugin for https://github.com/pi314/ime.vim
BSD 2-Clause "Simplified" License
7 stars 0 forks source link

suggest using Vader.vim for unit test #16

Closed apua closed 7 years ago

apua commented 7 years ago

an example below

image

pi314 commented 7 years ago

WOW, it's cool! I will look into it :D

pi314 commented 7 years ago

@apua I took a look into Vader.vim, and thought it would be very useful to test user view behavior. But for now I can't come up with test cases, because this plugin is too premature 😞, the test case above will so not be passed. I'll keep this in mind, though. If you have idea, feel free to add some!

pi314 commented 7 years ago

Hey, I read Vader's README again, and found that I missed something: I thought each test case have to be in separated files, but in fact they can be in one file. I'll think about how to setup a clean environment (venv-like?) to test this plugin (maybe unit test (for methods) first).

pi314 commented 7 years ago

I think Vader is too verbose to do unit test, and I found another plugin: LucHermitte/vim-UT, which only aims at testing functions results.

pi314 commented 7 years ago

For the following reasons, I choose Vader.vim (again) for testing:

So this issue is solved with be1f865, feel free to add more test cases.

pi314 commented 7 years ago

LucHermitte responded :smile: But Vader.vim is ok now, maybe I'll use LucHermitte/vim-UT in my other repos.