From 2475965b801c09ec3304b4a94d159c64c5b96620 Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Thu, 15 Aug 2024 22:27:34 +0300 Subject: [PATCH] Install deps and run tests --- .forgejo/workflows/ci.yml | 3 +++ tests/test-counsel-projectile.el | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 021b6ea..a8f0dae 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -25,6 +25,9 @@ jobs: - name: Install eask run: npm install -g @emacs-eask/cli + - name: Install deps + run: eask install-deps --dev + - name: Run tests run: eask test buttercup diff --git a/tests/test-counsel-projectile.el b/tests/test-counsel-projectile.el index d616661..0d23712 100644 --- a/tests/test-counsel-projectile.el +++ b/tests/test-counsel-projectile.el @@ -1,5 +1,13 @@ -;;; -*- lexical-binding: t; -*- +;;; test-counsel-projectile.el --- Buttercup tests for counsel-projectile -*- lexical-binding: t; -*- +;;; Commentary: +;;; Code: -(describe "counsel-projectile" - (it "always passes" - (expect 1 :to-equal 1))) +(require 'buttercup) +(require 'counsel-projectile) + +;; Example test! +(describe "A suite" + (it "contains a spec with an expectation" + (expect counsel-projectile--buffers :to-be nil))) + +;;; test-counsel-projectile.el ends here