Code Monkey home page Code Monkey logo

Comments (6)

joelwass avatar joelwass commented on June 5, 2024

only test critical user journeys (CUJ's) for integration tests:

Most critical user journey: Jackie wants to donate to teacher fund, she goes to website, she donates, jackie leaves and carries on her day.
2nd most critical user journey: Tammy the Teacher wants funds. She goes to the website, logs in to her Teacher account, and requests money and/or supplies via the request portal

from teacherfund_next.

jfeng43 avatar jfeng43 commented on June 5, 2024

Hi @joelwass just want to know, which testing framework are you going to use? Any guidance on doing integration tests? I write unit tests most of the time, but when it comes to integration tests, I don't know how to implement them in a systematic way.

from teacherfund_next.

nidamunir avatar nidamunir commented on June 5, 2024

Can I write unit tests?

from teacherfund_next.

joelwass avatar joelwass commented on June 5, 2024

Yes! I think @stripedpajamas and I need to consider testing frameworks. I'd assume we want to run just integration tests on a headless browser, i don't think there's need for unit tests on our FE.

Thoughts?

from teacherfund_next.

stripedpajamas avatar stripedpajamas commented on June 5, 2024

Our front end is a little too in flux right now for unit tests. After #100 #101 and #102 are closed, I think it would be safe to add some Enzyme tests to keep any future code changes from regressing on the design.

In regard to integration tests, for now I think it would be fine for now to implement unit tests around our client side API wrapper with mocks and unit tests around our server side API logic.

The testing frameworks for these unit tests can probably be standard Mocha+Chai, as I think that would be the most accessible. That implementation detail is up to @joelwass

from teacherfund_next.

joelwass avatar joelwass commented on June 5, 2024

Fixed ^

from teacherfund_next.

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.