Coder Social home page Coder Social logo

Add some unit tests about asciimatics HOT 5 CLOSED

peterbrittain avatar peterbrittain commented on July 23, 2024
Add some unit tests

from asciimatics.

Comments (5)

peterbrittain avatar peterbrittain commented on July 23, 2024

Started experimenting... looks like coveralls output would be good too. Now just need to get a LOT more coverage.

from asciimatics.

peterbrittain avatar peterbrittain commented on July 23, 2024

Also would be helpful if I could inject input into the test system. Looks like this is possible on curses and win32. Not sure if it's worth the reverse translation effort, though. Maybe I should just use an internal buffer (and flag the buffer for testing only, rather than genuine OS event injection)?

from asciimatics.

peterbrittain avatar peterbrittain commented on July 23, 2024

Would be nice to get Windows and Linux coverage... Looks like I might have to use https://github.com/Robpol86/appveyor-artifacts to get it all into coveralls.

from asciimatics.

peterbrittain avatar peterbrittain commented on July 23, 2024

Travis and appveyor integration now done. Code coverage getting there for non visual interfaces. Need to think about all the genuinely visual tests and where to draw the line for UT.

from asciimatics.

peterbrittain avatar peterbrittain commented on July 23, 2024

OK - all major issues resolved. Some tests are less than perfect as it is crazily expensive to test randomized visual content and the low-level interactions with the OS terminal/console. Nonetheless most lines are now basically covered, so crass regressions should be caught (and genuine failures of purely visual content will be easily spotted by eye). Now closing.

from asciimatics.

Related Issues (20)

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.