Commit 4717eb77 authored by Volker Krause's avatar Volker Krause
Browse files

Attempt to fix unit tests without ZXing

CI doesn't have ZXing.
parent 6f94a085
......@@ -15,6 +15,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <config-kitinerary.h>
#include <KItinerary/ExtractorEngine>
#include <KItinerary/ExtractorPostprocessor>
#include <KItinerary/HtmlDocument>
......@@ -123,6 +125,12 @@ private Q_SLOTS:
QSKIP("nothing extracted");
return;
}
#ifndef HAVE_ZXING
if (jsonResult.isEmpty()) {
QSKIP("nothing extracted, but ZXing is missing!");
return;
}
#endif
QVERIFY(!jsonResult.isEmpty());
const auto result = JsonLdDocument::fromJson(jsonResult);
ExtractorPostprocessor postproc;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment