detleph / server

Server component of the Detleph event management system
MIT License
1 stars 0 forks source link

Which testing environment #7

Closed Stefan-5422 closed 2 years ago

Stefan-5422 commented 2 years ago

We have not set out to use a certain testing environment for this project which one should we use

stephan418 commented 2 years ago

Do you mean an enviroment to test the code ourselves (such as insomnia) or do you want write automated test for the whole code (Unit / Integration tests)?

Stefan-5422 commented 2 years ago

Unit/Intigration tests to make this project even more overkill than it already is

stephan418 commented 2 years ago

So you want to write tests? Do you want to use TDD or just write tests to make sure code isn't broken / gets broken in the future?

Stefan-5422 commented 2 years ago

Do you want to use TDD or just write tests to make sure code isn't broken / gets broken in the future?

Fully Test Driven Development would be too much of a pain, but I would write tests for every endpoint to just check that everything works as it should. In normal use cases

stephan418 commented 2 years ago

Okay, are there any frameworks / runners that work both for frontend and backend testing? Just to keep the tooling as uniform as possible across the project.

Stefan-5422 commented 2 years ago

I think mocha should support both.

stephan418 commented 2 years ago

Looks good. Could you look into how to write simple test with mocha and other tools (probably assertion stuff and so on) both on the frontend and backend until tomorrow? Just some basic tests so we can discuss this more in-depth.

Stefan-5422 commented 2 years ago

Will do.