-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End-to-end tests #649
Comments
Currently, there are 23 tests. 3 of them are skipped. 2 of them are because of the inability of the newt. For one I couldn't find a solution.
I added the script to the crontab file. So after every regular build, the tests should be executed. The results of the tests can be observed from http://ivis.cs.bilkent.edu.tr/e2e-test-results.txt |
Can we please
|
Currently, after every regular build, end-to-end tests should be executed. I added a small section on "i-Vis Servers and Deployment" document about end-to-end tests. The results of the tests and the date-time that the tests are executed can be seen from http://ivis.cs.bilkent.edu.tr/Newt-e2e-test-results.txt |
@hasanbalci Please review, including documentation of the process. |
It seems good. @canbax I just want to be sure, for the test of other third-party services, whether we check a new tab is opened with the given URL successfully or not for TC1 and whether we check the properties in Properties from ChEBI field one by one for TC2. In the result document, they are mentioned only as selecting macromolecule/simple chemical, so I want to be sure. |
Here we are not really clicking and opening a new tab. This is mainly because cypress does not support multiple tabs. We are just checking the newt/cypress/integration/3rdPartyServices.spec.js Lines 29 to 30 in 248fba9
We are checking the 3 ChEBI fields one by one for TC2. You can see that newt/cypress/integration/3rdPartyServices.spec.js Lines 41 to 43 in 248fba9
|
Actually what is important here is not opening a new tab, but to know that the URL is valid (not returns 404 error etc.) so that we can understand this website is still useful for us to get service. Is there any way to achieve this? |
Thanks @canbax! Finally, let's add an email notifier to notify us when any of the test cases fails. These emails can be send to newteditor@gmail.com. |
And one more thing: These tests are currently working in the unstable branch. When we merge unstable to master, test related code will also be transferred into the master branch. @canbax We'll not run tests on the master branch, but if there is something in the test codes that may affect the master branch and so will require any change we need to apply before/after merge, can you list them in the Servers and Deployment doc. as well? |
…des for image generation from ebi links
In the Ubuntu machine, to add a new environment variable I did modify the file "/etc/environment" with nano using the command I added an environment variable like I did this to hide the password. |
Let's use the dashboard in Cypress for test results. |
We are storing the cypress dashboard project id as an environment variable. We are using an environment named "test0" for storing the id. Environments can be seen from https://github.com/iVis-at-Bilkent/newt/settings/environments. |
Let's investigate how we can implement some end-to-end tests for Newt.
The text was updated successfully, but these errors were encountered: