-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test-runner.clj, bb.edn, and test_main.clj files
- Loading branch information
1 parent
0ee7034
commit 8a36616
Showing
4 changed files
with
268 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
{:tasks | ||
{:paths ["src"] | ||
:min-bb-version "1.1.171" | ||
:tasks | ||
{:requires ([babashka.fs :as fs] | ||
[babashka.process :refer [process]] | ||
[clojure.string :as str] | ||
[clojure.edn :as edn]) | ||
scrape {:doc " Scrape all items from a user's profile " | ||
:task git-hire.main/-main} | ||
search-keyword (let [search (first *command-line-args*)] | ||
(-> | ||
(str "grep -r -i -l " search " profiles") | ||
(str " grep -r -i -l " search " profiles ") | ||
(babashka.process/process) | ||
:out slurp str/split-lines clojure.pprint/pprint))}} | ||
:out slurp str/split-lines clojure.pprint/pprint))}} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(require '[clojure.test :as t] | ||
'[babashka.classpath :as cp]) | ||
|
||
(cp/add-classpath "src:test") | ||
|
||
(require 'git-hire.test-main) | ||
|
||
(def test-results | ||
(t/run-tests 'git-hire.test-main)) | ||
|
||
(let [{:keys [fail error]} test-results] | ||
(when (pos? (+ fail error)) | ||
(System/exit 1))) |
Oops, something went wrong.