Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dave Newman
    @whatupdave
    wow, 6 years on this thing's still going! :D
    Matthias Koch
    @matkoch
    Hey
    what do you do to generate a text like "contestant.Points should be 1337 but was 0" from "contestant.Points.ShouldBe(1337)" ?
    I was thinking of rewriting, but I can't see anything in the nuspec that gives a hint about that
    Jake Ginnivan
    @JakeGinnivan
    You shouldn't need to do anything
    just make sure you are compiled as debug, and the source is still available
    Matthias Koch
    @matkoch
    ehmm... that's not even close an answer to my question :D
    Jake Ginnivan
    @JakeGinnivan
    I don't understand the question then?
    @matkoch did you install Shouldly through nuget?
    ShouldBe is an extension method, so you need to import the shouldly namespace
    then it is just an assertion within your test method
    Phil Scott
    @enkafan
    @matkoch are you asking how shouldly itself knows how to generate the text?
    Matthias Koch
    @matkoch
    I was asking for the specific technique, how you generate a text that equals to the actual statement.
    Jake Ginnivan
    @JakeGinnivan
    Ahh, sorry. I thought it was about usage of the library
    We use the stack trace to get the line number of the caller
    Matthias Koch
    @matkoch
    When I spoke about rewriting, I was relating to IL rewriting, which seemed like the most reliable way.
    Yes I got it already =)
    Jake Ginnivan
    @JakeGinnivan
    Ok cool
    Matthias Koch
    @matkoch
    well, performance is not so important for test projects
    but you know .... :)
    Jake Ginnivan
    @JakeGinnivan
    Yeah, shouldly has the opinion better error messages are more useful than saving a few hundred ms total
    We use another technique internally which would be quicker
    for Should.Throw() - we support expressions, then we format the expression tree
    Matthias Koch
    @matkoch
    I guess you guys are interested in testing, so I would like to tell you about my test framework, if you don't mind :) It's orthogonal to yours indeed. Could be combined.
    Jake Ginnivan
    @JakeGinnivan
    Sure
    Matthias Koch
    @matkoch
    Jake Ginnivan
    @JakeGinnivan
    Have not seen it
    nice
    Matthias Koch
    @matkoch
    I'm not putting so much effort into promotion unfortunately...
    But I'm actively developing it for 2 years now
    almost three :))
    Jake Ginnivan
    @JakeGinnivan
    Nice, I know how that feels. I have been building GitVersion for about that same time too
    Have you seen BDDfy? Also another project based on it https://github.com/mwhelan/Specify - Looks like we share similar concepts, except yours is also a test running whereas BDDfy/specify fit within existing test libraries
    https://github.com/JakeGinnivan/ExpressionToString - is the expression tree formatter i talked about
    Matthias Koch
    @matkoch
    ahh... i don't like this language noise :DD
    no test discovery in visual studio or resharper?
    Jake Ginnivan
    @JakeGinnivan
    These are just libraries which sit inside other testing frameworks
    you can use with fixie, nunit, xunit or any others
    Matthias Koch
    @matkoch
    yes, but will never be usable in a big solution
    Jake Ginnivan
    @JakeGinnivan
    how so?
    Matthias Koch
    @matkoch
    or maybe i don't understand..... how are tests displayed in the runners?
    Jake Ginnivan
    @JakeGinnivan
    we output to console/trace/whatever the test framework will pickup and display
    Matthias Koch
    @matkoch
    that's something that should be added to the readme.md :)
    Jake Ginnivan
    @JakeGinnivan
    Possible :)
    Matthias Koch
    @matkoch
    if you don't have any means to browse through test structure, THEN it's not suitable for big solutions
    btw, do you know pendulum? :)
    Jake Ginnivan
    @JakeGinnivan
    Test structure you use same techniques as xunit/nunit/whatever. organise by class or folders/namespaces etc
    nope?
    Matthias Koch
    @matkoch
    noticed you're from Perth... they're also... pretty famous =D
    Jake Ginnivan
    @JakeGinnivan
    oh, band