tests/smoke/lzunit-test.lzx

On 2006-07-31, at 13:17 EDT, Daniel Pool wrote:

> Knowing that code correctly fails is something I have wanted in our  
> own
> test suite but didn't see how to add. Maybe I should know this already
> but where is the code in smokecheck that is referred to below?
>
> Thanks,
> Daniel.
>
> P T Withington wrote:
>> FWIW, smokecheck tests lzunit before it uses it by setting up an
>> error handler for failures and then tries a bunch of assertions that
>> it expects to fail (and checks that the error handler gets called).
>> If the expected failures do not fail, then that test fails.
>>
>> On 2006-07-28, at 17:04 EDT, Jim Grandy wrote:
>>
>>> I'd like to see us do #2. Ben, do you have thoughts on how we might
>>> add intentional failures to lztest? I'm not volunteering you do it,
>>> just seeking information :-)
>>>
>>> jim
>>>
>>> On Jul 28, 2006, at 1:55 PM, Philip Romanik wrote:
>>>
>>>> Hi Mamye,
>>>>
>>>> This is concerning the jira bug about the failing lztests,
>>>>
>>>>    http://jira.openlaszlo.org/jira/browse/LPP-2416
>>>>
>>>>
>>>> Two of the tests that are failing, lztest-animator.lzx and
>>>> lztest-animatorgroup.lzx, fail because of bugs I found while
>>>> writing the
>>>> tests. Some later tests I wrote (on trunk) also generate errors but
>>>> they
>>>> reference a jira bug report.
>>>>
>>>> For the two tests that run on legals, I can do the following:
>>>>
>>>> 1. Do nothing. This means the unit tests will fail every time it is
>>>> run.
>>>>
>>>> 2. Modify the test to reference the jira bug report. Presumably,
>>>> the test
>>>> framework will have to be extended to ignore the errors since they
>>>> are
>>>> known issues. The errors being reported are also present on trunk.
>>>>
>>>> 3. Comment out the tests that are failing. The unit test will pass.
>>>> I doubt
>>>> anyone would run into these issues in actual use.
>>>>
>>>> There is one test that occasionally fails. It times how long the
>>>> animation
>>>> actually takes and compares it an expected value. If the error
>>>> exceeds a
>>>> set tolerance, an error is generated. I can make the tolerance much
>>>> larger
>>>> but then the test becomes less useful.
>>>>
>>>> Phil
>>>>
>>>> _______________________________________________
>>>> Laszlo-dev mailing list
>>>> [email protected]
>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>> _______________________________________________
>>> Laszlo-dev mailing list
>>> [email protected]
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to