DAVFoundation / missioncontrol

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

Add test to verify randomDavAddress() works correctly #82

Closed TalAter closed 6 years ago

TalAter commented 6 years ago

Knowabunga! 🐢🐢🐢🐢

This issue is tagged Knowabunga. It is only open for participants of the Knowabunga/DAV hackathon!

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 randomDavAddress() 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 to the describe('randomDavAddress()', () => { block 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

afmatthh commented 6 years ago

I'll work on this

cg-cnu commented 6 years ago

Hey @afmatthh Go ahead. Its yours... 😄

TalAter commented 6 years ago

First :octocat: pull request of the hackathon!

Thank you so much for your help ❤️ !