Coder Social home page Coder Social logo

Testing with Hive about hive HOT 8 CLOSED

isar avatar isar commented on July 21, 2024
Testing with Hive

from hive.

Comments (8)

GMC254 avatar GMC254 commented on July 21, 2024 1

Sorry, testing works great. It was just an oversight on my end as all values returned were null. Again thanks for the package.

from hive.

simc avatar simc commented on July 21, 2024

I agree, there should be an interface and documentation for integration testing...

from hive.

GMC254 avatar GMC254 commented on July 21, 2024

Question
As far as I can tell there's no documented way of unit integration testing with Hive.
Could we consider adding a test suite to one of the examples?

Code sample
N/A

Version

  • Hive version: 1.0.0

Thank you for bringing this up. Could not run unit tests too. I assumed that it's because Hive uses path provider in initiation which would require platform specific code.

from hive.

simc avatar simc commented on July 21, 2024

I assumed that it's because Hive uses path provider in initiation which would require platform specific code.

Hive does not use path_provider and has no platform code. What error are you seeing?

from hive.

GMC254 avatar GMC254 commented on July 21, 2024

I assumed that it's because Hive uses path provider in initiation which would require platform specific code.

Hive does not use path_provider and has no platform code. What error are you seeing?

What I meant was that hive requires one to run Hive.init(path), the path part (not Hive, of course) requires that i use path provider to provide the path which uses some platform specific code in its tests. All tests i'm currently running fail and I thought that was the cause. I look forward to the testing documentation. Thanks for this great package.

from hive.

simc avatar simc commented on July 21, 2024

@GMC254 All the unit tests for Hive itself run successfully. Maybe you want to take a look at them.

What error message are you getting?

@Offtree Hive has abstract classes for all its public APIs. You can use them to create mocks for your unit tests. I will create an example which shows how to do it...

from hive.

Offtree avatar Offtree commented on July 21, 2024

@Offtree Hive has abstract classes for all its public APIs. You can use them to create mocks for your unit tests. I will create an example which shows how to do it...

I'll give that a shot and see how it works out what I get some time

from hive.

simc avatar simc commented on July 21, 2024

If you need something that is currently missing (like an exposed field), just let me know...

from hive.

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.