Giter Site home page Giter Site logo

Add Unit Tests to repository about jsonkit HOT 2 OPEN

johnezang avatar johnezang commented on May 15, 2024
Add Unit Tests to repository

from jsonkit.

Comments (2)

johnezang avatar johnezang commented on May 15, 2024

I definitely agree with this. The only problem(s) I have with it are purely practical. The testing harness I have for JSONKit is a hodgepodge of kludged together scripts. It would have to be significantly cleaned up to make it something I wouldn't be embarrassed to commit to a public repo.. :)

However, should you be so inclined, I did borrow... well, all of the tests that are available in the jannson JSON library. Off the top of my head, that was by far the most comprehensive set of JSON tests I found, and there is a particular emphasis on testing corner cases.

Sadly, I'm not going to promise anything on this request... It's something I should unquestionably do, but there's that evil time and effort required vs gains demon.. :) I'll leave it open as a reminder that I really should get around to doing this.

from jsonkit.

 avatar commented on May 15, 2024

There is a 3rd alternative:

put the unit tests and other cruft into a project called JSONKitTests and link to that project near the top of README.md.

Long term, you could figure out how to merge the two projects or whatever.

Having the code as a simple 2-file JSONKit.{m,h} is really nice, but I was concerned about the lack of tests when I ran across this project. However, after reading the details on spec compliance, I concluded that there's just no way this project isn't tested.

from jsonkit.

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.