lexonomy icon indicating copy to clipboard operation
lexonomy copied to clipboard

Set up (minimal) testing for core functionalities

Open iiegn opened this issue 6 years ago • 2 comments

We should have automated tests for core functionalities (to deal with things like #132 #147 https://github.com/elexis-eu/lexonomy/commit/0e0d68b8dd106e7539617a9be8bd0419fc0f784e#r34259618 - and avoid regressions on them). These functionalities are (or will be) split between Python and Node.js - until, eventually (#128), Node.js will be dropped and the only JS will be in interface/browser/client parts.

If we go forward with this, we should find/agree on one test suite per environment

  • [ ] Python
  • [ ] Browser/Client-JS (maybe later...)
  • [ ] Node.js (likely never...)

@gareins @jan-niestadt @michmech @mjakubicek @rambousek

iiegn avatar Jul 11 '19 09:07 iiegn

I would wait with this until we drop NodeJS, which should be quite soon (Adam Rambousek is working on that).

mjakubicek avatar Jul 11 '19 10:07 mjakubicek

ok. out of personal preference, i would have started with python anyway. we don't have testing baked into bottle (like flask) but they give some pointers:

  • http://bottlepy.org/docs/dev/recipes.html#functional-testing-bottle-applications
  • https://docs.python.org/3/library/unittest.html

iiegn avatar Jul 11 '19 11:07 iiegn