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
Replace vital spec with themis #207
Comments
👍 |
3 similar comments
👍 |
👍 |
👍 |
Let's deal with it. I've assigned to the person who must know the best. |
👍 |
1 similar comment
👍 |
@thinca san is the best? (Somehow @thinca san's work might be too heavy now. |
@tyru I agree. We can be the 2nd thincas. |
See 究極のthinca |
themis って vital.vim の中に submodule とかで組み込んでしまうのが良いんでしょうか. |
See also thincaできるようになったぞ! |
themis.vim の後方互換性が完全に保たれるならそれで問題ないです |
後方互換性がなくなる段階で、vitalに組み込むか、バージョンをロックするか、最新に追従するかを決めれば良いと思います。 |
今後完全に互換を保つ保証はないですが(エンバグするかもしれないし)、clone する時に |
タグ指定すれば双方にとって安心ですね。 個人的にはthemisには互換性考えずに便利だと思った機能をガンガン取り入れてほしいです!
|
まさにVim-Vimの関係 |
了解です. |
このthemis計画はいつから実施するんでしょう? とりあえず、疑問に思ったことを挙げてみました。 |
移行タイミングですが、個人的には themis.vim 1.3 がリリースできたからがいいかな、と思っています。 " test/helper/assert.vimspec
Describe helper-assert
Describe .equals()
It checks actual equals to expect
call s:assert.equals(5 + 5, 10)
call s:assert.equals(2.0 + 5.0, 7)
call s:assert.equals('hoge' . 'huga', 'hogehuga')
call s:assert.equals('10', 10)
call s:assert.equals(range(3), [0, 1, 2])
End
It throws a report when values are not equivalent
call s:check_throw('equals', [1 + 1, 11], 'The equivalent values were expected')
call s:check_throw('equals', ['hoge', 'HOGE'], 'The equivalent values were expected')
End
It returns truthy value when check was successful
call s:assert.truthy(s:assert.equals(1, 1))
End
It accepts an optional message
call s:assert.equals(5 + 5, 10, 'error message')
call s:check_throw('equals', [1 + 1, 11, 'error message'], 'error message')
End
End
End こちらの方が既存のコードから移行し易いかと思います。
@ujihisa さんも言ってますが、移行が始まったら1つずつ少しずつ移行していき、移行中は両方のテストを走らせるようにして、全て移行が完了したら古い方を消してしまう感じになると思います。
ちゃんとは考えてないですが、モジュール側と同じ構造にして、1ファイル1モジュールのテストでいいかなぁ、と。core とか vitalizer は別途必要ですが、モジュール名と衝突はしないと思うので大丈夫かと。 |
|
おおお、vimspec++ |
vimspec++ |
One of the most important feature what we need is to test with vimproc, since couple of modules depend on vimproc. vital spec doesn't support vimproc, so there's no test available for |
https://github.com/vim-jp/vital.vim/blob/master/.travis.yml#L14 今も |
so handy 👍 |
themis 1.3 リリースしました! |
You can do it! |
++@thinca; とりあえず移行すべきテストのリストをトップに書いてみました.移行したらチェック入れていく感じでどうでしょうか? |
themis.vim は複数のやり方でテストが書けるので、どのスタイル、ヘルパを使うのかを、全体で統一してしまうか、もしくはモジュール毎にメンテナが自由にしていいか、決めておきたいところです。 |
別段縛る理由があるのでなければ,各メンテナ任せで良いのではないでしょうか |
各メンテナ任せと言う感じで行きましょう。皆さんどんどんやってくれてよいですよ! |
本件とは全く関係ないのですが、『各モジュールに対するメンテナの一覧』みたいなページってあるのでしたっけ。 |
お願いします! |
https://gist.github.com/rhysd/1c32685942d4e8cfbe5d 適当にスクリプトで取りました.
(ちょい整形&メールアドレス抜きました) |
トップのリスト更新しました.(さっきのリストと合わせて適当にスクリプトでつくって少し手で修正したので,間違っていたらすみません) |
Did the commit message prefix have to be "Bitwise: " instead of "test: "? |
そこは完全に "Bitwise:" にすべきでしたね。ミスりました。 |
時間あるときにちまちまと作業しています。できるだけ早くこの Issue 閉じたい…!! |
Web モジュールちまちまやってます. |
|
犬がとうございます。 |
💪🐶 |
本日移行終わったモジュールにチェック入れておきました. |
ProcessManagerは #278 のあとdeprecatedになる予定なので、これでもうバッチリ説浮上かな? |
🎉 |
I discovered that a Vimmer made a good Vim script testing framework which is called themis https://github.com/thinca/vim-themis
I suggest that we abandon vital spec and use themis in vital as the standard testing framework.
TODOs if we decide to use themis
Migration List
No test
The text was updated successfully, but these errors were encountered: