Giter VIP home page Giter VIP logo

Comments (6)

rdentato avatar rdentato commented on June 24, 2024 1

A thought: wouldn't it be better to add the full __FILE__ name at the beginning and remove it from the single lines leaving only the line number?

from tst.

rdentato avatar rdentato commented on June 24, 2024

@greg-is-kub. Thanks for the suggestion!
I wonder, however, if this could not cause a problem for projects that might have the same file name under different directories.
Yes, they shouldn't :)
But what if they do?
So I switched the printing of the full path off but the user can turn it on again by compiling with TSTFULLPATH defined. I've also updated the README file.
It's great to have feedback like this.

from tst.

rdentato avatar rdentato commented on June 24, 2024

ANd thanks to you pointing me to to check2 I was wondering if I should simplify and make testrun() take the role of main.

Let's do it. But please let me know what you think.

from tst.

greg-is-kub avatar greg-is-kub commented on June 24, 2024

Thats a good idea ! This would remove the need fore the __FILENAME__ macro & give a more minimal display.
Imo having "test / fail message / file / line is a bit cluttery.

from tst.

rdentato avatar rdentato commented on June 24, 2024

You can have a look at the devel branch.
Another functionality could be to produce a compact machine-friendly log that would be expanded into a fullyu human-readable log by another script. What do you think?

from tst.

rdentato avatar rdentato commented on June 24, 2024

CLosing.
Full path only at the top of the run. Only the line number is reported for each test.

from tst.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.