Closed christianmalek closed 4 years ago
Use circle-ci
Add Git precommit hook with transpiler and test runner, same procedure for city test
Is there some easy way to do unit tests with vuex-rest-api
?
@marceloavf I didn't think out anything yet. But since it's only a store creator you're able to use the standard vuex testing utilities (see async actions in https://vuex.vuejs.org/en/testing.html)
@christianmalek I'm happy to start writing some tests. I am using this module in a production application (about to be more than one!), so I have a vested interest in keeping things not broken :slightly_smiling_face:
What testing frameworks do you prefer? I generally use mocha
, but recently I've shifted more towards TAP frameworks such as tape
since they avoid the weird environment and setup problems that you typically encounter with frameworks like mocha
and jasmine
.
Hello Erik,
I've used Jest with babel-jest. But feel free to use what you want. I would appreciate it very much!
Erik Vavro notifications@github.com schrieb am Fr., 12. Okt. 2018, 21:34:
@christianmalek https://github.com/christianmalek I'm happy to start writing some tests. I am using this module in a production application (about to be more than one!), so I have a vested interest in keeping things not broken 🙂
What testing frameworks do you prefer? I generally use mocha, but recently I've shifted more towards TAP frameworks such as tape since they avoid the weird environment and setup problems that you typically encounter with frameworks like mocha and jasmine.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/christianmalek/vuex-rest-api/issues/15#issuecomment-429438341, or mute the thread https://github.com/notifications/unsubscribe-auth/ACvaggDUxK6dbPQ6wD6I223IY2ILMiXMks5ukO7QgaJpZM4NRto9 .
Great! I'll put some time towards it this weekend, although there will probably be some initial friction as I haven't played with unit tests in TypeScript yet.
Great! Thanks in advance.
Erik Vavro notifications@github.com schrieb am Sa., 13. Okt. 2018, 03:03:
Great! I'll put some time towards it this weekend, although there will probably be some initial friction as I haven't played with unit tests in TypeScript yet.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/christianmalek/vuex-rest-api/issues/15#issuecomment-429498709, or mute the thread https://github.com/notifications/unsubscribe-auth/ACvagomeynA_aksqy49LgGL8Hsp1TQvgks5ukTvmgaJpZM4NRto9 .
So I didn't get to it as soon as I would have liked (ya know, because life stuff)... but I have started fleshing out more tests: https://github.com/slurmulon/vuex-rest-api/tree/tests
I will have more availability next week to really hammer on these :muscle:
Hello @slurmulon,
Please take your time and again: Thanks for your contribution.
@slurmulon Hey! Any news? :)
@slurmulon Ping
Already in progress by myself.
Add https://github.com/typicode/json-server for tests