hmpl-lang / hmpl

Template language for displaying UI from server to client. Best alternative to htmx and alpine.js
https://hmpl-lang.github.io
MIT License
57 stars 11 forks source link

Make tests to cover 20-50% of the code. #27

Open antonmak1 opened 1 week ago

antonmak1 commented 1 week ago

Make 20-50% code coverage with tests. Use mocha, jsdom, c8 as a basis. It is necessary that tests could be launched via github actions and uploaded to codecov. For tests, it is necessary to replace the server with local solutions related to mocha and others. Everything needs to be done in the test folder. You can create separate files, or write everything in one file.

https://github.com/hmpl-lang/hmpl/tree/master/test - test folder https://github.com/hmpl-lang/hmpl/blob/master/test/main.test.ts - main file

rustedusted commented 6 days ago

i'll do it

rustedusted commented 6 days ago

or is it being done by someone else?!

antonmak1 commented 6 days ago

@rustedusted Thank you very much! Yes, of course, you can take this issue. Please, just stick to the technologies that are already working in tests: mocha, c8, jsdom. For the local server, if anything, it will be possible to add something new.

antonmak1 commented 1 day ago

@rustedusted Hello! Please tell me, will you do the task or should I reassign it?