From dbf4798b1a8098cde361f107950244ac58c086ff Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 13 Jan 2020 18:02:41 -0800 Subject: [PATCH] Add integration test for oni-browse-url --- .gitlab-ci.yml | 7 +++++++ test/integration/oni-browse-url.bats | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/integration/oni-browse-url.bats diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a988f44..22a6a61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -222,6 +222,13 @@ integration-test-oni-bookmark: - package script: make integration-test-oni-bookmark TEST_ARCHIVE=$(realpath bin/) +integration-test-oni-browse-url: + stage: integration-test + image: registry.gitlab.com/ryuslash/emacs-config + dependencies: + - package + script: make integration-test-oni-browse-url TEST_ARCHIVE=$(realpath bin/) + integration-test-oni-docker: stage: integration-test image: registry.gitlab.com/ryuslash/emacs-config diff --git a/test/integration/oni-browse-url.bats b/test/integration/oni-browse-url.bats new file mode 100644 index 0000000..74aa6ad --- /dev/null +++ b/test/integration/oni-browse-url.bats @@ -0,0 +1,11 @@ +#!/usr/bin/env bats + +@test "Loading browse-url loads oni-browse-url" { + run emacs -batch -l package -f package-initialize \ + -l browse-url \ + -eval "(prin1 (featurep 'oni-browse-url))" + + echo "$output" + + [ "$output" = "t" ] +}