Add more tests #611
Labels
discussion
Exchange of some opinions needed
enhancement
Wants to improvide an existing feature
help wanted
We want you to help us with this!
refactor
We currently only do static code analysis on our codebase. This prevents broken syntaxes but doesn't prevent logical errors.
And while static-typed languages provide a little bit of security for not breaking things without a compiler error, in JS that's totally possible. To prevent this we need runtime tests. Unit tests using a framework like mocha or jasmine would be awesome! It needs a lot of work but it would help to stabilize the code base a lot.
It's an annoying task, I know and for most people, no fun. But I'm not the JS test guru I should be for this task, so I would really appreciate help with this. The basic setup, the concept where to place the tests (in a separate directory or along with the files but with a
.test.js
file ending). How to make these tests not breaking ourwebpack
setup and so on?As you know since #579 we as a community develop HackMD CE now and we have to decide where we want to go. Right now, I try to stabilize the code base and fix existing bugs instead of providing more and more new features. With tests, we can go further and make it easier to verify new features and prevent them from breaking existing ones.
I love working on HackMD as well as I enjoy having this community! So let's work on it as a community and improve HackMD CE!
Pull Request, concepts, examples, and ideas are very welcome! ❤️
Also feel free to meet me in our Gitter-Space:
Newer duplicate of #22
The text was updated successfully, but these errors were encountered: