snikproject / graph

Visualization of the snik-ontology.
http://www.snik.eu/graph
GNU General Public License v3.0
8 stars 3 forks source link

Tests for feature-multiview #298

Open ThomasPause opened 4 years ago

ThomasPause commented 4 years ago

testing a serverside application like multiview with the existing way (chai) seems to be impossible. Investigate on how to write smart gui tests (end-2-end-tests)

ThomasPause commented 4 years ago

nice combination here is cypress.io and cucumber. Communication between is via the cucumber-cypress-preprocessor.

https://www.cypress.io/

Cypress supports chai and mocha syntax and is easy implementable. It provides an own test runner, as an embedded browser and can be run by a npm run script.

Cucumber gives the possibility to write tests in natural language. That's a nice feature but not needed for now in this project. Another reason is that it has to implemented a preprocessor tool, what is too much overhead. For pgraph I will write an ui test, that maybe can be transported into the master branch later. Description can be found at my Bachelor-Thesis.

ThomasPause commented 4 years ago

maybe we can use the procedure defined in our Releasecheckliste.