After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732195 - Add automated tests for gnome-clocks
Add automated tests for gnome-clocks
Status: RESOLVED OBSOLETE
Product: gnome-clocks
Classification: Applications
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Clocks maintainer(s)
Clocks maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-06-24 22:47 UTC by Martin Simon
Modified: 2021-06-01 22:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Basic and World page related tests written in Behave (28.45 KB, patch)
2014-06-24 22:47 UTC, Martin Simon
none Details | Review
Basic and World page related tests written in Behave (28.41 KB, patch)
2014-06-26 23:04 UTC, Martin Simon
none Details | Review

Description Martin Simon 2014-06-24 22:47:21 UTC
Created attachment 279159 [details] [review]
Basic and World page related tests written in Behave

Gnome-clocks should be covered with automated tests executable under GnomeContinuous.
Comment 1 Martin Simon 2014-06-26 23:04:41 UTC
Created attachment 279349 [details] [review]
Basic and World page related tests written in Behave

just a small enhancement
Comment 2 Paolo Borelli 2014-07-31 12:42:43 UTC
Review of attachment 279349 [details] [review]:

Hi!

sorry for the lack of feedback. I am not familiar at all with behave etc.

Is it possible to move the tests in a "test" subdir? Apart from that, if your mentor reviews the tests and they are ok, feel free to push them.
Comment 3 Martin Simon 2014-08-13 19:29:32 UTC
Hi,

I don't know if I understand correctly. You mean to rename the "tests" directory to "test"? Or create subdir of "tests" called "test"? I'm ok with options, so it depends on you.

Thanks for the feedback anyway!
Comment 4 Paolo Borelli 2014-08-13 21:56:59 UTC
I think I just misread the patch and did not notice the files are already in a tests dir. So ignore that comment. 

However now I wonder how this works since you added the test to the Makefile.am of the parent directory.
Comment 5 Martin Simon 2014-09-17 12:27:50 UTC
Hi again, sorry for this delayed note.

Well, those installed tests (executed under GnomeContinuous) are supposed to be installed only when the package is built with --enable-installed-tests, so this is the reason why I needed to add those three lines in Makefile.am in the top directory. The recipe for those tests is in m4/behave-installed-tests.m4 and few one-line statement is also in configure.ac, but all of those has the same reason - to install InstalledTests only when requested.

I'm not a author of this structure, we used it widely for all applications so far, so I'm sorry if I wrote something wrong above. But in general, this should work well, and if not, I'm ready to fix it.
Comment 6 André Klapper 2021-06-01 22:44:23 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/

Thank you for your understanding and your help.