GithubHelp home page GithubHelp logo

Comments (8)

clifinger avatar clifinger commented on May 25, 2024 1

Ok, done, please do your PR on develop :)

from canduma.

shirshak55 avatar shirshak55 commented on May 25, 2024

@clifinger I think we can write integration test. And We can use mock http request etc.

from canduma.

clifinger avatar clifinger commented on May 25, 2024

@shirshak55 yes I think also, I will make the dev branch when I finish my job. but you can start and do a PR :) thank you by the way !

from canduma.

shirshak55 avatar shirshak55 commented on May 25, 2024

@clifinger sure i will probably start once i reach home.

from canduma.

clifinger avatar clifinger commented on May 25, 2024

@shirshak55 do you want me to take care of this ticket?

from canduma.

shirshak55 avatar shirshak55 commented on May 25, 2024

@clifinger yea please

from canduma.

olexiyb avatar olexiyb commented on May 25, 2024

Hi all, I personally tried to use rust unit testing, but I found that
rust is still in an infant state.

I personally found that jest is way better and flexible and faster to work with
With the combination of supertest that uses superagent, tests are easy to write and easy to maintain.

I also use Clion and it still has issues to run system tests of application that accepting parameters, due to mix of parameters you passing to rust and to application.

Here is a screenshot of unit testing I currently have

image

I have organized the execution the way that during start jest will compile API and restart it automatically and run it in debug mode with logging enabled, so you can see debug information from rust code as well as debug information from the test itself.

I basically took the best from two worlds.
I think that in most of the cases the web front will be anyway written on javascript (React, Angular, Vue) and for me is OK to use javascript for integration testing.

The question is are you interested in me to submit the patch with jest unit testing?

from canduma.

shirshak55 avatar shirshak55 commented on May 25, 2024

@olexiyb hey there i agree the problem is code reuse i guess but i still think node js & jest is perfect for testing such thing as test usually don't end up in hot path .

from canduma.

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.