Skip to content

Commit 80b1b37

Browse files
committed
Add an e2e integration test
1 parent 4fd85aa commit 80b1b37

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(defproject foo "0.1.0-SNAPSHOT"
2+
:dependencies [[org.clojure/clojure "1.10.3"]]
3+
:plugins [[cider/cider-nrepl "0.27.2"]
4+
[refactor-nrepl "RELEASE"]])
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(ns foo.core
2+
(:require
3+
[foo.other :as other]))
4+
5+
(defn foo
6+
"I don't do a whole lot."
7+
[x]
8+
(println x "Hello, World!"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(ns foo.other)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(ns foo.core-test
2+
(:require [clojure.test :refer :all]
3+
[foo.core :refer :all]))
4+
5+
(deftest a-test
6+
(testing "FIXME, I fail."
7+
(is (= 0 1))))

.circleci/integration_test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -Eeuxo pipefail
3+
4+
make install
5+
6+
cd .circleci/integration-testing/foo
7+
8+
lein with-profile -user repl <<< "(@(requiring-resolve 'refactor-nrepl.ns.libspecs/namespace-aliases))" | grep --silent --fixed-strings "{:clj {other (foo.other)}, :cljs {}"

0 commit comments

Comments
 (0)