Greenstand / treetracker-web-map-client

The front end of the treetracker web map app.
http://map.treetracker.org
GNU Affero General Public License v3.0
65 stars 182 forks source link

Speed up our cypress+next.js test #1733

Open dadiorchen opened 1 year ago

dadiorchen commented 1 year ago

Currently, the cypress test is slow, npm run cy will run the cypress test, we integrated next.js in this test command, everytime we run modifed the file, the test will be refreshed automatically, but the rebuild is slow, a protential problme might be rooted in slow building of next.js process.

Please help us analyze the problem and improve the test tool.

About the next.js, there might be some tool: https://turbo.build/ https://vercel.com/blog/turbopack?utm_source=thenewstack&utm_medium=website&utm_content=inline-mention&utm_campaign=platform


Some hints:

shuzaiv5 commented 7 months ago

Hi @dadiorchen - I plan to work on this one. Please feel free to let me know if any questions or any helpful info you can share.

RingoTC commented 7 months ago

Hi @dadiorchen - I plan to work on this one. Please feel free to let me know if any questions or any helpful info you can share.

Hi @shuzaiv5 , we already tried turborepo for our project. In my view, turborepo are designed to speed up the monorepo project. If you are still interested in this topic, I will recommend you to dive into Webpack it may works for speeding up the build process.

dadiorchen commented 7 months ago

Yea, I also did some test, doen't observe improvement by using that lib, we should consider other options