I was initially skeptical about Rust's convention of having tests in the same file as the actual code, but it seems to be working out well.
-
-
Replying to @larsr_h
I actually thought we should go the opposite direction and have tests in a different repository, evolving independently of the code they're testing. This would make it easier to check the behaviour of past as well as future versions of the code.
2 replies 0 retweets 2 likes -
-
Replying to @larsr_h
I think only in the context of what we're currently familiar with. Trying to sell someone our current universe from my hypothetical alternative universe would probably make it seem a nightmare to them, too...
2 replies 0 retweets 0 likes -
Replying to @propensive
Fair point, so let's see: How would you handle compatibility between main and test repositories?
1 reply 0 retweets 0 likes -
-
Replying to @propensive
It's difficult enough to keep compatibility across versions when you're programming against a public API. With tests, you often want to check internals.
1 reply 0 retweets 0 likes -
Replying to @larsr_h
Oh, you wouldn't, but the fact it's hard at the moment is sort of the point: If the tests aren't in sync with your main repo, then some of them would just fail (at compile time). You would update them if/when you care enough to do so, but no requirement for it to be synchronous.
3 replies 0 retweets 0 likes -
Replying to @propensive @larsr_h
Isn't that the equivalent of "I'll write the tests later"? If you release untested code into production, the difference between writing the tests later and never writing them is close to none.
1 reply 0 retweets 0 likes
But it decouples the two, but doesn't change anyone's standards on whether the deploy untested code. And it leaves open the possibility of someone writing those tests later, which would otherwise be closed.
-
-
Replying to @propensive @larsr_h
seems like it's just not an option I would prefer then. But I see how it could be useful to some.
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.