R
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm particularly interested in the features that fall under the first two bullet points. What do you think is essential for a framework aimed at micro-tests? What do you think should definitely be excluded?I'm looking for folks who are willing to chime in with ideas and this seems like a great forum to start. If it generates too much traffic, we can take it elsewhere.* It should be self-contained, requiring no other runner to execute tests* It should leverage features of each language in it's implementation, rather than substituting it's own conventions* It should have nothing that leads you away from microtestsI'm thinking of creating a test framework tailored for micro-tests and micro-tests alone. I'd leverage my experience with NUnit and do the first implementation in C# and I'd add some ideas I have not gotten to implement in NUnit as well. My thoughts about such a framework so far are...
* It should have everything you need for micro-tests
--
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
J. B. Rainsberger wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
Michael Hill wrote:
J. B. Rainsberger wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gotcha. Yeah I hear you. I suspect that is an implementation problem more than an intent problem?
--
Sent from Mail.Ru app for Android
Michael Hill wrote:
J. B. Rainsberger wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
J. B. Rainsberger wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
Hi Charlie
One thing that comes to mind is that any test should fail on the first behavior that is wrong. I spend my time in C and C++. I suggest to client that use GoogleTest to not use the macros that report errors but let the test case continue. That may be helpful for AT level tests but not TDD level unit tests. For micro-testing running on is not helpful.
James
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
Why is teardown a problem? Is that because OO languages' object destruction should handle the cleanup?
--
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
Fluent assertions? I suspect these are what you get when you gather and refactor assertions. Not that only one primitive thing is checked, but that logically one thing is checked.
Under the hood in garbage collection there is something that destroys objects.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
yes, run all the tests but only continue in a test until something wrong happens.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cool, thanks
Jeff Langr wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
Jeff Langr wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
Heavens forbid if there is a static variable, teardown could reset it. Yes, static is bad. Seems like micro-testing should not make that impossible.
I'd like to see a micro-test fail if a static is not restored. A class of these failures is detected by CppUTest when an allocated object is not deleted and intentionally left in a static. The standard library is prone to this. A singleton has this as part of its definition. (yeah, I know. Don't use singletons.)
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
* direct support for Contract Tests: I can combine standard tests with my test subject factories to “generate” the same test run for multiple implementations of the same interface
* tearDown() (you should never need it!)
Jeff...I live in Java. As far as the assertions go, I also prefer "new style" to the old. To me, that means AssertJ. The extensibility here is just tremendous and very easy to do.Is that what you're thinking of?Hill
On Tue, Aug 8, 2017 at 6:02 PM, Jeff Langr <jjl...@gmail.com> wrote:
Greetings Charlie--
I particularly appreciate that creating multiple test fixtures is available to me through NUnit (via nested classes), but JUnit (prior to 5) doesn't directly support that. Having to spread related tests across multiple source files is awkward. (Maybe there's solution that doesn't appear quite as cluttered/constrainted as nested classes--something that allows for a bit better contextual organization, and doesn't demand encoding all context in the name of each test.)
I agree with JB on teardown.
I'd also add: eliminate the old-school assertEquals, and offer only fluent assertions.
On a similar but more personal bent, also eliminate assertion failure messages.
I wonder if there's a way to encourage single behavior tests (i.e. tests that push asserts in the direction of 1-per-test).
This sort of interest always makes me wonder what a new, TDD-focused language might look like.
Regards,
Jeff
J. B. Rainsberger wrote:
On Sun, Aug 6, 2017 at 8:57 PM, Charlie Poole <cha...@nunit.org> wrote:
I'm particularly interested in the features that fall under the first two bullet points. What do you think is essential for a framework aimed at micro-tests? What do you think should definitely be excluded?I'm looking for folks who are willing to chime in with ideas and this seems like a great forum to start. If it generates too much traffic, we can take it elsewhere.* It should be self-contained, requiring no other runner to execute tests* It should leverage features of each language in it's implementation, rather than substituting it's own conventions* It should have nothing that leads you away from microtestsI'm thinking of creating a test framework tailored for micro-tests and micro-tests alone. I'd leverage my experience with NUnit and do the first implementation in C# and I'd add some ideas I have not gotten to implement in NUnit as well. My thoughts about such a framework so far are...
* It should have everything you need for micro-testsDefinitely include:* data-oriented tests in the style of Spock/Fit over the Parameterized Test Case pattern
* direct support for Contract Tests: I can combine standard tests with my test subject factories to “generate” the same test run for multiple implementations of the same interface
Definitely exclude:* arbitrary grouping of tests (“tags”, “categories”…) — if I want to have multiple groups of independently-run tests, I should work for it
* tearDown() (you should never need it!)
That’s just off the top of my head. I’m curious to see whether my subconscious thinks of anything else particularly salient.It sounds like a good project!--
J. B. (Joe) Rainsberger :: http://testdrivendevelopment.training :: http://www.jbrains.ca ::
http://blog.thecodewhisperer.com
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lonely-coaches-sodality/KxHTCCF_OVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lonely-coaches-so...@googlegroups.com.
Oh! AssertJ! <headdesk> <grumble grumble>I must go rewrite a sh*tload of sample code...
--
---
You received this message because you are subscribed to a topic in the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lonely-coaches-sodality/KxHTCCF_OVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lonely-coaches-so...@googlegroups.com.
On Aug 9, 2017, at 4:36 PM, Allen Holub <al...@holub.com> wrote:Maybe I’m just dense, but if you don’t have teardown, how do you undo side effects (e.g. file creation or mods) of the tests? Even micro tests occasionally have side effects and the boy-scout rule definitely applies.
On Aug 9, 2017, at 4:38 PM, rob....@agileinstitute.com wrote:Ditto. I like fluent assertions. Not sure where you get those besides an archaic copy of the Hamcrest JAR...? Last time I needed fluent assertions, I had to pull Hamcrest out of the trash bin. Why???
On Aug 9, 2017, at 4:50 PM, Rob Myers <rob....@agileinstitute.com> wrote:The idea there is that if we stick to microtesting, nothing needs to be torn down.
[snip]On 10 Aug 2017, at 12:40, Ron Jeffries <ronje...@acm.org> wrote:
However, microtesting isn’t the only testing one does. I’d think one would move rather smoothly up and down the size scale. Micro micro micro mini micro mini moderate …I ‘m not convinced we should have a tool so limited that every time our ideas expand a bit we need to switch tools.This makes me think that perhaps the “micro” notion isn’t quite the thing … but I’ve very sure that very simple is good.
I don't know that 'nothing needs to be torn down'.
Lets say for micro testing you create fake concurrency mechanisms, like mutex.acquire and mutex.release. I'd like to make sure that every test ends in a state with all mutex's released. I bet this group could dream up many other things like this. open/close for example.
James
James Grenning - Author of TDD for Embedded C - wingman-sw.com/tddec
wingman-sw.com
wingman-sw.com/blog
twitter.com/jwgrenning
facebook.com/wingman.sw
Cell: +1 847-630-0998
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lonely-coaches-sodality/KxHTCCF_OVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lonely-coaches-sodality/KxHTCCF_OVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
setup/teardown mean pre-test and post-test for me too.
CppUTest as a generalized plugin idea. Where each plugin has a pre-test and post-test action.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lonely-coaches-sodality/KxHTCCF_OVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Aug 10, 2017, at 11:08 AM, Charlie Poole <nuni...@gmail.com> wrote:As it happens, I'm leaning toward the use of the constructor in this hypothetical new framework. It allows developers to use a familiar idiom to initialize the test. Downside is that it doesn't work for static methods.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
On Aug 10, 2017, at 2:10 PM, Charlie Poole <nuni...@gmail.com> wrote:Does the @after include the provision that it always runs, even if an exception is thrown?
@Test(expected = IndexOutOfBoundsException.class) public void empty() { new ArrayList<Object>().get(0); }
On Aug 10, 2017, at 2:32 PM, Allen Holub <al...@holub.com> wrote:Injecting a million mocks solely to make the object testable in isolation unnecessarily clutters up the code. That is, If I can avoid it, I don't want to make the actual code more complex (potentially introducing bugs and always impacting maintainability) solely to make the object testable. I, at least, really need @After or some similar mechanism. to clean up after the occasional test that has side effects. Without it, I have to put the clean up into a script that invokes the test, and I'd much rather have all the test stuff in one place.
Sounds like a parameterized test method. Most xUnit frameworks
support this directly or through extensions. Some give easier
semantics while others make it more/too complicated. But no reason
why xUnit tests should be run multiple examples through the same
given/when/then or AAA logic.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Gerard Meszaros Lean/Agile Coach/Mentor/Trainer http://www.gerardmeszaros.com http://xunittraining.com 1-403-827-2967 Twitter: @gerardmes LinkedIn: gerardmeszaros Author of the Jolt Productivity Award winning book "xUnit Test Patterns - Refactoring Test Code." Learn more at http://xunitpatterns.com/index.html
what's a data-oriented test in the style of spock?
what's a contract test in the context you envision?
This one has me befuddled. Different classes would implement the interface differently, so what could we test that we hadn't otherwise tested elsewhere? I could see the need for something like this (or at least what *I think* you're suggesting) if I'm going to have to test different classes on different platforms, but for the same behavior. But as I type that I just can't imagine doing that with a "test generator" - it smells funny to me whenever a microtest is generated.
Then I thought, "Well, what about testing an abstraction factory that changes based on platform?" (Uh, sorry, an "Abstract Factory" Design Pattern, all praise to the Gang of Four! ;-) But I can think of other ways to microtest that, too.
Why is teardown a problem? Is that because OO languages' object destruction should handle the cleanup?
Wow! Great thread! Thanks for the feedback. I'm mostly just listening for now, but I'll ask questions for clarity. Here's one: regarding teardown, can someone spell out why it's bad for micro-tests? Would you eliminate Setup as well?
On Tue, Aug 8, 2017 at 11:30 PM, James Grenning <ja...@grenning.net> wrote:Why is teardown a problem? Is that because OO languages' object destruction should handle the cleanup?
It’s not that teardown is a *problem*, but rather that it should be unnecessary. If every test runs in a separate runtime context (in an OO language, its own object), then there should be no need to clean up. Needing to clean up probably (always?) makes it “not a microtest”. It might subtly encourage integrated tests by making it too easy to clean up.
On Aug 11, 2017, at 11:29 AM, J. B. Rainsberger <m...@jbrains.ca> wrote:It’s not that teardown is a *problem*, but rather that it should be unnecessary. If every test runs in a separate runtime context (in an OO language, its own object), then there should be no need to clean up. Needing to clean up probably (always?) makes it “not a microtest”. It might subtly encourage integrated tests by making it too easy to clean up.
I totally get the idea of simplicity in the framework. I don’t get the idea of limiting its capability. What’s the upside to that?
On Aug 11, 2017, at 8:28 PM, Jon Kern <jonk...@gmail.com> wrote:You can be opinionated and decide to settle on a vision and limits for your micro testing product.Or allow in everyone’s wishes and water down the original intent.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
I find fluent assertions to be somewhat easy to read, in that they are sort of like a sentence. My profession is writing and reading programming languages, but even so I find reading, say, Java, easier than writing some DSL someone pulled out of their um brain and wrote in Java. DSLs are only useful to the people who write and live with them all the time. They are rather opaque to everyone else.I find it nearly impossible to understand how fluent assertions could possibly work, because you have to understand the return type of every method you’ve never seen before. So it distracts me to look at themI find them nearly impossible to write new ones because even though someone can say .Be(11) it’s not clear if you can say .Be().Bigger().Than().A(breadbox) or not. The fluent “vocabulary” is huge and all one mostly needs is “assertEqual()”/On Aug 9, 2017, at 4:38 PM, rob....@agileinstitute.com wrote:Ditto. I like fluent assertions. Not sure where you get those besides an archaic copy of the Hamcrest JAR...? Last time I needed fluent assertions, I had to pull Hamcrest out of the trash bin. Why???
On Aug 12, 2017, at 7:44 PM, Charlie Poole <nuni...@gmail.com> wrote:Interesting comment about fluent assertions... easy to read but hard to write.What do you use to edit? Most people seem to rely on the presence of some sort of prompting from an IDE (Intellisense in VS) to tell them what they are allowed to type next. I suspect that the use of a really complex fluent language may even require that sort of prompting.
Hi Ron,Some examples could be...* File assertions* Ordering of tests* Shared state across tests* hierarchical setup in various formsSome of these, of course, may also be used in ways that do no harm.CharlieOn Sun, Aug 6, 2017 at 11:46 PM, Ron Jeffries <ronjeff...@gmail.com> wrote:Hi Charlie!
> On Aug 6, 2017, at 7:57 PM, Charlie Poole <cha...@nunit.org> wrote:
>
> * It should have everything you need for micro-tests
> * It should have nothing that leads you away from microtests
I'm certainly all for this, though I am at this moment quite without ideas. Can you think of an example of something in NUnit that leads away? (I suspect it's something I never used and don't even know about.)
Thanks!
R
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
I totally get the idea of simplicity in the framework. I don’t get the idea of limiting its capability. What’s the upside to that?
--
If you look at my post giving the conclusions I drew from the discussion, I think you'll see that I took the "simplicity rather than restriction" notion to heart!
--
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
On Aug 27, 2017, at 12:01 AM, Charlie Poole <nuni...@gmail.com> wrote:Interesting idea. For general testing, I think no timeout makes sense as the default, but for a micro test it should only take some relatively small amount of time. Has to be at least three or four times the minimum resolution of the timer however or you'll get irregular results.On Sat, Aug 26, 2017 at 5:22 PM, Nigel Thorne <ni...@nigelthorne.com> wrote:What about... any test taking over X time auto-fail.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-so...@googlegroups.com.
mmm i think i like the callback idea a lot
How about... Blurring the lines where tests end, so they are async.. arrange, act, assert, timeout are all callbacks,Then I can write tests how I read them.. "when" "then” "given". :)Timeouts default callback is fail.Optional training wheels feature that checks the number of "ifs" encounter during execution of an act callback. If it's greater than some value, fail the test.This would be a proxy for npath complexity, but the test covering the complex path would fail, not the while method.
On 27 Aug. 2017 8:05 pm, "Ron Jeffries" <ronje...@acm.org> wrote:
What core facility would be required to allow the programmer to “simply" place a convenient start-timer call in setup, that would upon timer elapsing, fire an interrupt / exception which could be fielded as desired?--The languages I use most have timer-tick events built in.This makes me wonder how to expose general exception handling up to the programmer level, rather than handle such things inside the framework. That is, framework doesn’t do anything with exceptions and events, treat them as fail or pass or whatever, just passes them to the programmer, who has set up whatever’s to be done in his handlers.Then, I’d suppose, there’d be well-known handlers in a library that one could reference and use, but one could write one’s own.On Aug 27, 2017, at 12:01 AM, Charlie Poole <nuni...@gmail.com> wrote:Interesting idea. For general testing, I think no timeout makes sense as the default, but for a micro test it should only take some relatively small amount of time. Has to be at least three or four times the minimum resolution of the timer however or you'll get irregular results.On Sat, Aug 26, 2017 at 5:22 PM, Nigel Thorne <ni...@nigelthorne.com> wrote:What about... any test taking over X time auto-fail.
Ron Jeffriesronjeffries.com
Master your instrument, master the music, then forget all that shit and just play. -- Charlie Parker
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Lonely Coaches Sodality" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lonely-coaches-sodality+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Also... any test failing in the "arrange" should be marked as 'blocked' not 'failed'. The focus of the test was never reached. Another test should be failing at that point. This way only the test focused on the bug will 'fail', giving you a laser pointer focused on the actual error.
I think the same should be true for the 'act' if you haven't got some type of "expect an exception to be thrown" type behaviour. This is less clear to me however.
Wish I'd seen this thread earlier. So many great ideas. I agree strongly with the notion of no individual tearDown.
--