Comments (8)
Ok, done, please do your PR on develop :)
from canduma.
@clifinger I think we can write integration test. And We can use mock http request etc.
from canduma.
@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.
@clifinger sure i will probably start once i reach home.
from canduma.
@shirshak55 do you want me to take care of this ticket?
from canduma.
@clifinger yea please
from canduma.
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
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.
@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)
- Suggested way to add new model HOT 2
- Redis session cookies (with one remember_me). HOT 3
- Implementing OAuth server HOT 4
- Better HTTP Response HOT 3
- Rust 1.39.0 and Async/Await HOT 21
- Consider using wundergraph for the database <-> GraphQL interaction HOT 1
- Cargo run failed HOT 1
- Get JWT Token, get No HOT 4
- Consider Heroku compatibility HOT 1
- Authentication inside GraphQL / Juniper HOT 3
- discussion: async-graphql vs jupiter and diesel vs tokio-postgres vs sqlx HOT 1
- Connection pooling via r2d2 crate HOT 2
- Cannot query field "token" on type "QueryRoot" HOT 1
- [ Feature Request ] support cursor-based pagination HOT 1
- Diesel 2.0 released with errors when updating
- Add Redis session backend.
- Federation support for GraphQL
- Console command scaffolding to add routes, handlers, models, managers etc ... HOT 5
- Implementing cargo-generate and make the templates.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canduma.