DAVFoundation / missioncontrol

🛰 Controls and orchestrates missions between vehicles and DAV users
MIT License
181 stars 156 forks source link

Add test to verify randomRating() output #83

Closed TalAter closed 6 years ago

TalAter commented 6 years ago

Thank you for your help :heart:

What is this project?

DAV (Decentralized Autonomous Vehicles) is a new foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, and all the service providers around them) to communicate and transact with each other over blockchain.

The specific project you are looking at is Mission Control. It is the brain in charge of orchestrating missions between DAV users and autonomous vehicles.

How you can help

As a project that relies on a large community of contributors, it is very important for us to have good tests to make sure changes don't break anything.

One of the functions that need testing is randomRating() inside /server/simulation/random.js. This function generates random identities for simulated drones.

Please extend the test spec in test/specs/simulation.random.spec.js adding a test that tests the following condition:

To run your tests, run npm test from the project's root directory. All tests should pass.

tests

Contributing to Mission Control

sblasa commented 6 years ago

Hi @TalAter , could I work on this issue?

Thanks,

TalAter commented 6 years ago

@sblasa Of course.

sblasa commented 6 years ago

@TalAter great! Thanks!

TalAter commented 6 years ago

Hi @sblasa

Are you still interested in doing this, or can I reopen it to others?

sblasa commented 6 years ago

Hi @TalAter, sorry, yes still interested, I will get it to you this week and let you know if I'm having issues with it. Thanks for asking me and being patient. :) 👍

sblasa commented 6 years ago

Hello @TalAter, I was experiencing this error when I ran my npm test. image

Maybe I missed something? I will try to sync the latest from your repo again and see if I get the same error. Thanks!

TalAter commented 6 years ago

I had the same problem with the test and it is now fixed. Please sync with the latest revision from the repo.

sblasa commented 6 years ago

@TalAter, thanks, I will try that!