This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-19
Channels
- # admin-announcements (1)
- # beginners (26)
- # boot (6)
- # cider (14)
- # cljsjs (29)
- # cljsrn (19)
- # clojure (87)
- # clojure-austin (5)
- # clojure-belgium (10)
- # clojure-brasil (2)
- # clojure-dusseldorf (15)
- # clojure-greece (17)
- # clojure-russia (51)
- # clojure-sanfrancisco (4)
- # clojure-sweden (20)
- # clojure-uk (31)
- # clojurescript (111)
- # core-matrix (2)
- # cursive (9)
- # datascript (15)
- # datomic (41)
- # dirac (1)
- # emacs (8)
- # flambo (1)
- # funcool (4)
- # hoplon (72)
- # lein-figwheel (3)
- # off-topic (2)
- # om (79)
- # om-next (2)
- # onyx (17)
- # other-languages (16)
- # re-frame (62)
- # reagent (26)
- # remote-jobs (1)
- # rum (3)
- # spacemacs (5)
- # untangled (120)
If I had any ops experience I'd be happy to temp!
Morning
In the spirit of sharing and Mesos, I found this really nice course by Mesosphere on Mesos, Vagrant, ZooKeeper, Marathon, Chronos, Docker, Ansible, and some other stuff: https://open.mesosphere.com/advanced-course/
It's really easy to follow which I found quite refreshing
did you learn anything surprising @agile_geek ?
Not surprising other than how simple git is under the covers (although I don't think I could have come up with it or implemented it!). Feel better informed about what happens when ppl in work are trying to rebase 100s of commits on branches shared remotely! (Hint: Don't do that!)
and sometimes when you have wildy diverged branches it’s far easier to do git diff A B | patch -p1
hey guys, wonder if anyone is free to help me with a question about database testing?
the question is more of a conceptual one - when feature testing a web app, do your tests do rollbacks between feature tests to return to a known database state
if so, how is this achieved in Clojure? If the test opens a separate connection to the DB as the server (which does the DB side-effects), how do you wrap the relevant activity in a rollback
how to implement it, depends on your database. Although, if you're using a SQL db, and basic SQL, you might be able to get away with using sqlite :memory: databases instead of a full postgres server.
i’d do the majority of my testing without a database, and for the few tests which do, dump a base fixture in beforehand
using transactions is nice, but would need nested transaction support if your app uses them
hmm so if you're doing feature/integration testing where you're trying to mimic user/client behaviour - are you bothered about rolling back between tests at this point of testing? (Assuming you've already got watertight unit tests)
I am unsure whether this is a community practice at all - I learned testing from a Ruby background, and it was quite straightforward to set up feature testing with Capybara to mimic client behaviour, but still rollback the database between tests using DatabaseCleaner
I've found posts about how to set up your tests in a similar way at the unit test level, which I can get working but I seem to run into problems trying to do this if I indirectly access the server by launching HTTP requests, rather than calling the functions directly