Home > BDD > dSpec - BDD for Delphi

dSpec - BDD for Delphi

April 20th, 2007

dSpec.rar

Released under the Mozilla Public License 1.0 (MPL).

This release adds specifiers for Interfaces: Support() and ImplementedBy().

Specify.That(MyIntfList).Should.Support(IInterfaceList);

Specify.That(MyIntfList).Should.Be.ImplementedBy(TInterfaceList);

See the specs in the specification folder for the full list functionality.

Have fun!

BDD

  1. salvador
    April 20th, 2007 at 16:54 | #1

    support for delphi 6 ?

    dSpecSpecifications.dpr build with delphi 6 and run.
    click to run selected test.
    access violatin at adres ……

  2. jdawkins
    April 21st, 2007 at 12:02 | #2

    I’m afraid I don’t have a copy of Delphi 6. Can you track down where the A/V occurs?

  3. salvador
    April 21st, 2007 at 13:18 | #3

    http://img186.imageshack.us/img186/5440/errorsry2.jpg

    procedure TContextBehavior.ShouldAllowMultipleSpecifiers;
    var
    TheNumber: Integer;
    begin
    TheNumber := 3;
    Specify.That(TheNumber).Should.Equal(3).And_.Not_.Equal(2).And_.Not_.Equal(4); // 5 is right out! :P
    end;

    break point on “Specify.That(TheNumber)….”
    f7
    f7
    f7
    f7



    destructor TFailureReportingObject.Destroy;
    begin
    FCallerAddress := nil;
    FContext := nil;
    inherited Destroy; //–> access violatin
    end;

  4. Jody Dawkins
    November 14th, 2008 at 06:16 | #4

    Hi Toby, I'll look into it. I'm travel this week and next so I can't guarentee how quickly I can get a solution. I'll do my best. Thanks for commenting on this.

  5. TOBY
    November 14th, 2008 at 11:51 | #5

    I use dSpec this version, and use "ReportMemoryLeaksOnShutdown := True".
    Then, some memory leaks appeared.

    When UnitTest finished, following dialog are appeared.

    —————————
    Unexpected Memory Leak
    —————————
    An unexpected memory leak has occurred. The unexpected small block leaks are:

    1 - 12 bytes: TSpecify x 1
    13 - 20 bytes: TList x 1
    21 - 28 bytes: TBaseAutoDoc x 1, TFailureList x 1
    29 - 36 bytes: String x 1
    109 - 116 bytes: MyPointSpec x 1
    —————————
    OK
    —————————

    I researched this bugs, and I ascertained that some circular reference of interface maked trouble.
    In particular, Troubles are maked by TContext.FSpecify and TContext.FAutoDoc.
    TContext instance is interface, however TSpecify and TBaseAutoDoc have IContext.
    They are circular reference of interface.
    Some field of TContext,like FSpecify and FAutoDoc, can not have IContext.

    (to be continued )

  6. TOBY
    November 14th, 2008 at 11:51 | #6

    I tried to fix it, and fixed one.

    TContext.FSpecify deleted and ISpecify was defined.
    And a property of TContext.Specify changed to "function TContext.Specify: ISpecify".
    So, in TContext.Specify, TSpecify created every calling.
    Like following…

    function TContext.Specify: ISpecify;
    begin
    Result := TSpecify.Create(Self);
    end;

    However I could not fix about TContext.FAutoDoc!

    Please help me…

    About my environment:
    -Windows XP SP3
    -BDS 2006(Delphi 2006)

  7. March 26th, 2010 at 02:07 | #7

    A great constructive article will help to understand the issue.

  8. May 14th, 2010 at 03:07 | #8

    your favourite Documents, Picture, Video, Achive, Music here

  9. May 27th, 2010 at 04:38 | #9

    Nice blog. I will keep visiting this blog very often.

  10. July 7th, 2010 at 05:17 | #10

    If you want to buy a house, you will have to get the personal loans. Furthermore, my mother usually uses a financial loan, which occurs to be really rapid.

  11. July 9th, 2010 at 06:33 | #11

    Good way to have a success is to get the superb original custom essay or data just about this post, or just get know about contact us selecting the custom essays writing corporation.

  12. July 9th, 2010 at 18:28 | #12

    Good way to have a success is to get the superb original custom essay

  13. July 13th, 2010 at 03:24 | #13

    Any course you resolve upon, there is always somebody to tell you that you are faulty. There are ever difficulties come up which lure you to consider that your critics are veracious . But our service will help you at anywhen to write your article. I recommend youdissertation writing that will assist you in your university life. We will assist you to stand up and become a useful classman!

  14. July 14th, 2010 at 07:29 | #14

    When students buy an essay and find pre written essays about this good post, that will be possible to get good quality.

  15. July 23rd, 2010 at 06:13 | #15

    I know that that’s important to get know about this topic. Buy custom essay papers at the paper writing services about this topic, because this is really important text.

  16. July 27th, 2010 at 18:50 | #16

    it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity!

  17. August 12th, 2010 at 00:17 | #17

    very cool post

  18. August 18th, 2010 at 01:52 | #18

    it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity!

  19. August 21st, 2010 at 05:27 | #19

    I found your website perfect for my needs. It contains wonderful and helpful posts. I have read most of them and got a lot from them.

  20. August 23rd, 2010 at 05:48 | #20

    I love your blog. Maybe you could let me know how I can subscribing with it?

    great post … this all goes trough my mind and could not agree more .

  21. August 30th, 2010 at 23:20 | #21

    I was simply browsing for relevant blog articles intended for my project research and My partner and i happened to stumble on yours. Many thanks for this helpful material!

  1. April 4th, 2010 at 15:09 | #1

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word