andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Separate test for optional dependencies #450

Closed abitrolly closed 5 years ago

abitrolly commented 5 years ago

To make sure that Enki still works without optional dependencies, it may be convenient to separate tests for optional things. Right now tests fail without optional docutils installed. It is trivial to fix just by installing docutils on the test server, but then it is easy to miss the situation when modules like docutils become non-optional.

https://travis-ci.org/andreikop/enki/jobs/417026472#L297 https://github.com/andreikop/enki/blob/3c6f030c370321c3b87b1cde459559380941635b/tests/run_all.py#L7

bjones1 commented 5 years ago

The import_fail module provides the ability to make installed modules report as not being installed, in order to verify that optional dependencies really are.

abitrolly commented 5 years ago

So how to fix Travis? https://travis-ci.org/andreikop/enki/

bjones1 commented 5 years ago

See https://github.com/andreikop/enki/issues/449#issuecomment-413744509.