Giter Site home page Giter Site logo

Add a test suite about mintable HOT 4 OPEN

kevinschaich avatar kevinschaich commented on May 21, 2024 1
Add a test suite

from mintable.

Comments (4)

kevinschaich avatar kevinschaich commented on May 21, 2024 2

Hey @blimmer / @bennett39 – just wanted to highlight that we've added some non-exhaustive smoke testing pending the v2.0.0 release (see #55). You can check them out on the project's GitHub Actions page.

Right now we have two workflows:

  • test: Tests whether all the code compiles and matches linter/formatter specs
  • fetch: Tests whether the new mintable CLI can successfully fetch a dummy Plaid account and update a public Google Spreadsheet template without error

We require both of these to pass before merging a PR.

For now I'll mark this issue as help wanted but I won't have the time to tackle a proper test suite in the short term.

from mintable.

kevinschaich avatar kevinschaich commented on May 21, 2024

While I'm in favor of adding these on a high level, want to call 2 things out:

  1. I think this will be quite a large endeavor and I'm not sure I'll personally have the time to add it for a while
  2. I think we should focus on testing the core back-end functions (such as interfacing with transactions & spreadsheets) rather than the front-end config framework, as I've gotten a lot of reports that the current GUI is kind of buggy and we might scrap it soon for something else.

Keeping those in mind I think this is a great idea and would welcome contributions.

We don't use react anywhere but in the front end so if there's another suite that the community is more familiar with, let's use that.

from mintable.

blimmer avatar blimmer commented on May 21, 2024

Absolutely - my intention was not to ask you to write a whole test suite. I was mostly trying to gauge what framework might be ideal for testing so we could start introducing some tests as we go along. With #48, I agree that maybe we don't test the front-end logic right away.

I'm most familiar with Mocha and Chai, but I feel like that might date me. From what I can tell on the internets, Jest is what a lot of people are using nowadays.

from mintable.

bennett39 avatar bennett39 commented on May 21, 2024

I'd say Jest or Mocha are both pretty popular still, and we'd be fine using either. Jest has the backing of Facebook, so it gets the nod from React a lot, but either works just fine. If you know Mocha, go with what you know. I'm sure it can handle what we need.

from mintable.

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.