nisanharamati has quit [Quit: Connection closed for inactivity]
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
jeremyheiler has quit [*.net *.split]
mikeyhew has quit [*.net *.split]
Sargun has quit [*.net *.split]
Sargun has joined #ponylang
mikeyhew has joined #ponylang
jeremyheiler has joined #ponylang
puzza007_ has quit [Quit: Connection closed for inactivity]
dipin has quit [Quit: dipin]
mahsav has joined #ponylang
milisarge has quit [Ping timeout: 256 seconds]
mahsav has quit [Ping timeout: 260 seconds]
khan has joined #ponylang
dubiousjim has joined #ponylang
jemc has quit [Ping timeout: 248 seconds]
mollymorphic has quit [Read error: Connection reset by peer]
mollymorphic has joined #ponylang
cjh` has quit [Remote host closed the connection]
gokr has joined #ponylang
SenasOzys_ has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
codec1 has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Client Quit]
codec1 has joined #ponylang
SenasOzys_ has quit [Read error: Connection reset by peer]
milisarge has joined #ponylang
gokr has quit [Quit: Leaving.]
khan has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
mahmudov has joined #ponylang
alxs has joined #ponylang
alxs has quit [Client Quit]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
vaninwagen has joined #ponylang
dubiousjim has quit [Ping timeout: 268 seconds]
dubiousjim has joined #ponylang
alxs has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
codec1 has joined #ponylang
alxs has joined #ponylang
<Candle>
How does one cope with having a set of unit tests (afaik, requiring a Main actor) and a Main program executable actor in the same package?
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
<SeanTAllen>
there's no set way to do that
alxs has joined #ponylang
<SeanTAllen>
Jemc puts the unit tests in a different package. Drawback, can't test anything that is private.
<SeanTAllen>
the other option that we used to do at Wallaroo Labs, is to have a flag to run your unit tests instead of the applicaiton on startup and only have a single Main actor but its responsible for "run the application vs run the tests"
<Candle>
Jemc's approach is ok-ish, a lot of people suggest that one should only test your public API; however, when you have an edge case that is best tested by calling your private function that doesn't hold.
<Candle>
In one project, I made my unit testable code a library and the Main as a dependent project but that approach doesn't really fit with this one.
vaninwagen has joined #ponylang
<SeanTAllen>
I happen to disagree with "a lot of people" on that front. But everyone has their valid reasons.
<Candle>
I'm not hugely happy with having the test code in the same directory as my application code as it distracts from the functionality of the library; and unless you are quite careful, it's too easy for test code to leak into the distributable.
khan has quit [Ping timeout: 248 seconds]
<Candle>
I agree, it's really useful to test edge cases via a non-public API, as it can make the tests simpler.
<Candle>
With my Maven plugin for ponylang, I followed the standard Maven project layout and had test code in a separate directory, but had to do some odd things to ensure that when building the test executable, the packages lined up.
<Candle>
I presume it can also add more code to compile when depending on a library, as the compiler is unlikely to be able to tell the difference between test code and library code.
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
khan has joined #ponylang
khan has quit [Remote host closed the connection]
khan has joined #ponylang
alxs has joined #ponylang
dubiousjim has quit [Read error: Connection reset by peer]
mahmudov has quit [Ping timeout: 240 seconds]
dubiousjim has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
milisarge has quit [Ping timeout: 265 seconds]
Pyrrh has joined #ponylang
khan has quit [Client Quit]
dubiousjim has quit [Ping timeout: 240 seconds]
khan has joined #ponylang
dubiousjim has joined #ponylang
jemc has joined #ponylang
milisarge has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
dubiousjim has quit [Read error: Connection reset by peer]
dubiousjim has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
milisarge has quit [Ping timeout: 255 seconds]
mahmudov has joined #ponylang
gokr has joined #ponylang
mahmudov has quit [Ping timeout: 240 seconds]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
jemc has quit [Ping timeout: 256 seconds]
gokr has quit [Quit: Leaving.]
jemc has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
mahmudov has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
mahmudov has quit [Ping timeout: 256 seconds]
milisarge has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
khan has quit [Quit: khan]
khan has joined #ponylang
gokr has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
mahmudov has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]