christianmalek / vuex-rest-api

A utility to simplify the use of REST APIs with Vuex
http://vuex-rest-api.org
MIT License
382 stars 48 forks source link

create tests #15

Closed christianmalek closed 4 years ago

christianmalek commented 7 years ago

Add https://github.com/typicode/json-server for tests

christianmalek commented 7 years ago

Use circle-ci

christianmalek commented 7 years ago

Add Git precommit hook with transpiler and test runner, same procedure for city test

marceloavf commented 7 years ago

Is there some easy way to do unit tests with vuex-rest-api ?

christianmalek commented 7 years ago

@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)

slurmulon commented 6 years ago

@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.

christianmalek commented 6 years ago

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 .

slurmulon commented 6 years ago

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.

christianmalek commented 6 years ago

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 .

slurmulon commented 6 years ago

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:

christianmalek commented 6 years ago

Hello @slurmulon,

Please take your time and again: Thanks for your contribution.

christianmalek commented 5 years ago

@slurmulon Hey! Any news? :)

christianmalek commented 4 years ago

@slurmulon Ping

christianmalek commented 4 years ago

Already in progress by myself.