From 43bd5026f6c9e1bfb0d5eeb4e5368145a4079296 Mon Sep 17 00:00:00 2001 From: janos erdos Date: Sat, 20 Jul 2024 19:26:43 +0200 Subject: [PATCH] fix: all test ns have -test suffix --- .github/workflows/pr_visual_flow.yml | 2 +- test/stencil/{errors.clj => errors_test.clj} | 2 +- test/stencil/various.clj | 4 +--- test/stencil/{visual.clj => visual_test.clj} | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) rename test/stencil/{errors.clj => errors_test.clj} (99%) rename test/stencil/{visual.clj => visual_test.clj} (98%) diff --git a/.github/workflows/pr_visual_flow.yml b/.github/workflows/pr_visual_flow.yml index d97e6a7e..1e593432 100644 --- a/.github/workflows/pr_visual_flow.yml +++ b/.github/workflows/pr_visual_flow.yml @@ -22,7 +22,7 @@ jobs: - name: Compile Java run: lein javac - name: Test Clojure - run: lein test stencil.visual + run: lein test stencil.visual-test - name: Archive diff png uses: actions/upload-artifact@v3 if: failure() diff --git a/test/stencil/errors.clj b/test/stencil/errors_test.clj similarity index 99% rename from test/stencil/errors.clj rename to test/stencil/errors_test.clj index 042536ae..b84e726a 100644 --- a/test/stencil/errors.clj +++ b/test/stencil/errors_test.clj @@ -1,4 +1,4 @@ -(ns stencil.errors +(ns stencil.errors-test (:import [io.github.erdos.stencil.exceptions ParsingException EvalException]) (:require [stencil.types :refer :all] [stencil.integration :refer [test-fails]] diff --git a/test/stencil/various.clj b/test/stencil/various.clj index 62604489..4c08f6f0 100644 --- a/test/stencil/various.clj +++ b/test/stencil/various.clj @@ -1,8 +1,6 @@ (ns stencil.various "Not used yet." - (:require [clojure.data.xml.pu-map :as pu-map] - [clojure.string :as s] - [stencil.postprocess.ignored-tag :refer :all])) + (:require [stencil.postprocess.ignored-tag :refer :all])) (defn- url-decode [s] (java.net.URLDecoder/decode (str s) "UTF-8")) diff --git a/test/stencil/visual.clj b/test/stencil/visual_test.clj similarity index 98% rename from test/stencil/visual.clj rename to test/stencil/visual_test.clj index 44b93cb0..0a12391d 100644 --- a/test/stencil/visual.clj +++ b/test/stencil/visual_test.clj @@ -1,4 +1,4 @@ -(ns stencil.visual +(ns stencil.visual-test (:require [clojure.java.shell] [clojure.string :as str] [clojure.test :refer [deftest testing use-fixtures]]