Coder Social home page Coder Social logo

Comments (12)

OR13 avatar OR13 commented on August 21, 2024

Related, I pulled down the latest and the current tests were failing (the did document id was not correct after the create request).

I fixed the test and added travis ci to my fork.

Having CI tests will really help encourage contributions and increate confidence that contributors are not breaking things.

https://travis-ci.org/transmute-industries/sidetree-core/builds/442307014

I'm not a member of this github org yet, but if someone can turn on travis ci for this repo, I'm happy to open a PR with the passing tests and ci changes.

from sidetree.

OR13 avatar OR13 commented on August 21, 2024

I'd be interested in adding these tests once some CI system is hooked up.

from sidetree.

sylar217 avatar sylar217 commented on August 21, 2024

@thehenrytsai do we want to have a travis setup or a Visual Studio CI setup for this? Both seems fine to me

from sidetree.

thehenrytsai avatar thehenrytsai commented on August 21, 2024

I will have to look into the issue in unit tests further because the same test passes on my end, it would be great if @sylar217 you can see if the unit test passes on your end?

Definitely for having CI setup, just haven't got around to it. Will not grab this issue just yet as I want to close other issues I grabbed first, will come around to this ASAP though, as I agree CI will encourage contribution!

from sidetree.

OR13 avatar OR13 commented on August 21, 2024

@thehenrytsai Can I open a pull request that adds Travis CI and runs the current test suite?

from sidetree.

thehenrytsai avatar thehenrytsai commented on August 21, 2024

@OR13, yes please! I can setup Travis CI if needed.

from sidetree.

OR13 avatar OR13 commented on August 21, 2024

@thehenrytsai #41

Done.

from sidetree.

OR13 avatar OR13 commented on August 21, 2024

I'm not exactly sure what format we want to be using for mocking these clients, but here is one approach:

transmute-industries@5f2515f

Happy open a PR or restructure these tests based on feedback.

from sidetree.

thehenrytsai avatar thehenrytsai commented on August 21, 2024

Thanks @OR13, I was not able to repro the unit test issue on a separate Windows environment, but just managed to repro on a mac, will debug and provide a fix, then merge in your PR. Then I'll look at the branch for client mocking code.

from sidetree.

thehenrytsai avatar thehenrytsai commented on August 21, 2024

Turned out to be test JSON file stored on Windows vs Linux being different which causes the buffer to be different (Windows uses \n\r, Linus uses \n). Will submit a fix.

from sidetree.

thehenrytsai avatar thehenrytsai commented on August 21, 2024

Hi @OR13, your pull request on Travis CI is merged, thanks again!

I took a look at your approach for mocking the CAS and blockchain servers and they look fine for the purpose of unit testing. Would be great if you can open a PR.

Regarding the exact response schema, they are already intended to be somewhat chain agnostic, and are defined in the implementation documentation under Blockchain/CAS REST API sections. They are subject to change as we refine the design and implementation, but you can follow that for now.

I've made some comments on your current commits.

from sidetree.

thehenrytsai avatar thehenrytsai commented on August 21, 2024

Much more unit tests have been added since then. Also added #212 to boost code coverage to near 100%.

from sidetree.

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.