Suggestions for a test framework to use with the project #100
Replies: 2 comments 1 reply
-
I did some more customary looking around on this topic & realised Playwright was created by the same guys behind the Puppeteer project. The only difference being, while the former is backed by Microsoft, the later was created at Google. Also Playwright supports better out-of-the-box cross-browser compatibility while Puppeteer only supported the FOSS Chromium browser! I also noticed, Playwright is used to test client-side functionalities, integration tests & component testing isn't supported yet (need further clarification on this statement) . |
Beta Was this translation helpful? Give feedback.
-
From what I've noticed, it takes extremely long for CI to run integration tests (wiith Playwright or Cypress, and with caching too). Despite the Babel setup, I think we should prioritize unit tests more than integration tests. Its simple, its fast and it works. Given that our website will only be static for a foreseeable future, I dont think integration tests make too much sense. |
Beta Was this translation helpful? Give feedback.
-
If you might've noticed, the project doesn't have ANY tests right now 😁 . I know, for those of you who're experienced enough out there, it sounds like a ticking bomb ready to explode any moment! As such we would like to discuss which frameworks should we choose to go with.
The official Next.js docs recommends the following frameworks for test Next.js-powered apps:
I reviewed each of those frameworks & came to the following conclusions:
That said, if you feel either of these test frameworks will suit the project's requirements then please feel free to let us know in the comments below! Additionally, let us know if we could use other test framework that we might've missed out on as well.
Beta Was this translation helpful? Give feedback.
All reactions