Whether we use React or Vue or Angular, we will regret it. Instead let’s solve the problem then choose the technology
Interested in UI/UX, design thinking and data visualization
Hey Rob, I've seen your answer on TDD and unit tests...
If you were to write tests for the frontend...what tests would you write unit tests (testing state changes, implementation details) or tests that emulate how the user uses software ?
I think the best approach is to blend both with a leaning towards emulating how the user interacts with the thing you’re testing.
We largely cover four areas when testing:
do certain elements show/hide on the front end (e.g. how the user interacts with the app)
certain internal changes, state, functions are fired
API calls being made
the interactivity between components.
Oh and we’re also looking to build out a suite of visual regression testing. This approach physically interacts with the app/site/whatever and then matches screenshots to see if there have been negative/unexpected changes
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Rob, I've seen your answer on TDD and unit tests...
If you were to write tests for the frontend...what tests would you write unit tests (testing state changes, implementation details) or tests that emulate how the user uses software ?
I think the best approach is to blend both with a leaning towards emulating how the user interacts with the thing you’re testing.
We largely cover four areas when testing:
Oh and we’re also looking to build out a suite of visual regression testing. This approach physically interacts with the app/site/whatever and then matches screenshots to see if there have been negative/unexpected changes