How do I use the automated tests?

Asked by Rusi

Hi there. I need to maintain a digital diary for some personal reasons, and found RedNotebook to fit my needs well. As I played around with the application for some days I fould some areas of improvement. And since I know a bit about software development I decided to check out the code and see if I can contribute.

As I like to practice Test-Driven Development I found the tests/ directory and the dev/run-tests.sh script and tried to run those tests before making changes. Because 'run-tests.sh' sounds like it is running the tests. But it actually runs static analysis tools and some other weird underscore stuff, but does not actually execute those test_*.py files. You can verify it by flipping an assert, it seems they are just analyzed, but not executed.

But before reaching to this point I struggled with the static analysis, which currently does not pass too:

✔ ~/Coding/rednotebook [master|✚ 1]
$ dev/run-tests.sh
rednotebook/info.py:186:9: E126 continuation line over-indented for hanging indent
rednotebook/info.py:187:9: E126 continuation line over-indented for hanging indent
rednotebook/info.py:188:9: E126 continuation line over-indented for hanging indent
rednotebook/gui/clouds.py:176:18: E128 continuation line under-indented for visual indent

So my question is: are you taking those tests seriously?
And if yes, how is one supposed to use them?
And are these tests integrated in the build process?

Question information

Language:
English Edit question
Status:
Answered
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jendrik Seipp (jendrikseipp) said :
#1

The run-tests.sh only calls style tests. Sorry, the name was misleading,
but is now changed to check-style.sh.

You can invoke the code tests by calling py.test (must be installed) in
the main directory.

Can you help with this problem?

Provide an answer of your own, or ask Rusi for more information if necessary.

To post a message you must log in.