COVIDImpact / CovidImpact

COVID-19 is impacting countless small businesses across Canada, we all face uncertainty. Several colleagues and I asked what we could do to help? After a weekend of non-stop coding we’ve put together #CovidImpact, a FREE Small Business Care Package which features: A curated list of programs to help them through the crisis. Real-time news relevant to Canadian ventures Simulation tool to see how their business may be affected across various scenarios depending on how long COVID-19 drags out for. Together, Canadian businesses will get through this by supporting each other! CovidImpact is built in Vue with Javascript, HTML and CSS files. The project utilizes various Bootstrap-Vue components and newsapi.org to get the latest business news. The app is hosted on S3 and uses serverless functions for a mailchimp newsletter.
http://covidimpact.ca/
Apache License 2.0
3 stars 0 forks source link

Build unit test suite for vue components #35

Open aPruner opened 4 years ago

aPruner commented 4 years ago

Overview:

We should have some unit tests that ensure we don't break the rendering of core components, or the logic of important user-facing algorithms like our Assessment Analytics.

What needs to be done:

  1. Look into solid unit-testing frameworks for Vue apps, decide on one (maybe the vue-cli and mocha/jest are good enough?)
  2. Decide on a framework, install it, get some basic component-rendering tests up and running
  3. Document how to run the unit tests in the README.md
  4. Create more issues that call for unit tests of other untested components and other more difficult areas to test (for example, our Assessment Analytics algorithm)

Criteria of success:

  1. Unit-test framework/tools installed
  2. Basic component-rendering tests written for 1-2 components
  3. In the README.md, there is a short section outlining how to run the unit tests
  4. Issues created that promote the development of unit tests for other components, pages, and complex logic within those components

Documentation:

As mentioned above, we should certainly add a short section to the README.md about how to run the unit tests once we add them!

Stakeholder:

@Aliserag

NoirKomBatman commented 4 years ago

Do we need unit testing for the components? It is a simple project and we can work on a more impactful things

aPruner commented 4 years ago

Not saying it's the highest priority item, but it's certainly something that all projects should have!

NoirKomBatman commented 4 years ago

Agree that every project should have :)