commit
021d1c2880
|
@ -2,6 +2,9 @@
|
||||||
/lib
|
/lib
|
||||||
/classes
|
/classes
|
||||||
/checkouts
|
/checkouts
|
||||||
|
/out
|
||||||
|
/resources/public/js/compiled
|
||||||
|
/resources/public/css/style.css
|
||||||
pom.xml
|
pom.xml
|
||||||
*.jar
|
*.jar
|
||||||
*.class
|
*.class
|
||||||
|
|
35
README.md
35
README.md
|
@ -11,30 +11,47 @@ https://commiteth.com
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
* You will need [Leiningen][1] 2.0 or above installed.
|
You will need [Leiningen](https://github.com/technomancy/leiningen) 2.0 or above installed.
|
||||||
|
|
||||||
[1]: https://github.com/technomancy/leiningen
|
### PostgreSQL
|
||||||
|
|
||||||
|
Make sure you install [PostgreSQL](https://www.postgresql.org/) and properly set it up:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo -u postgres psql -c "CREATE USER commiteth WITH PASSWORD 'commiteth';"
|
||||||
|
sudo -u postgres createdb commiteth
|
||||||
|
```
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
lein run
|
Launch following commands each in its own shell:
|
||||||
lein figwheel
|
|
||||||
lein less auto
|
```
|
||||||
|
lein run
|
||||||
|
lein figwheel
|
||||||
|
lein less auto
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
### Clojure tests
|
### Clojure tests
|
||||||
|
|
||||||
lein test
|
```
|
||||||
|
lein test
|
||||||
|
```
|
||||||
|
|
||||||
### ClojureScript tests
|
### ClojureScript tests
|
||||||
|
|
||||||
|
```
|
||||||
lein with-profile test phantom test
|
lein with-profile test doo phantom test
|
||||||
|
```
|
||||||
|
|
||||||
### Reagent component devcards
|
### Reagent component devcards
|
||||||
|
|
||||||
lein with-profile test figwheel devcards
|
```
|
||||||
|
lein with-profile test figwheel devcards
|
||||||
|
```
|
||||||
|
|
||||||
Open http://localhost:3449/cards.html
|
Open http://localhost:3449/cards.html
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,14 @@
|
||||||
|
|
||||||
(deftest test-github-keywords
|
(deftest test-github-keywords
|
||||||
(testing "Several keywords in mixed case"
|
(testing "Several keywords in mixed case"
|
||||||
(let [res (set (extract-issue-number
|
(let [res (set (extract-issue-number "body"
|
||||||
"Fixes #12 and cloSes #000028 and also resolved \n#32"))]
|
"Fixes #12 and cloSes #000028 and also resolved \n#32"))]
|
||||||
(is (= #{12 28 32} res))))
|
(is (= #{12 28 32} res))))
|
||||||
(testing "Ignoring big numbers and zeroes"
|
(testing "Ignoring big numbers and zeroes"
|
||||||
(let [res (set (extract-issue-number
|
(let [res (set (extract-issue-number "body"
|
||||||
"Fixes #298374298229087345 and closes #0xFFEF"))]
|
"Fixes #298374298229087345 and closes #0xFFEF"))]
|
||||||
(is (= #{} res)))))
|
(is (= #{} res))))
|
||||||
|
(testing "Consider both body and title"
|
||||||
|
(let [res (set (extract-issue-number "Fixes #1"
|
||||||
|
"Fixes #2"))]
|
||||||
|
(is (= #{1 2} res)))))
|
||||||
|
|
Loading…
Reference in New Issue