Skip to content

Next.js repo working with e2e test using Playwright, doing load and stress testing with JMeter and BDD with Cucumber.

Notifications You must be signed in to change notification settings

mattborghi/software-development-testing

Repository files navigation

Instructions

  1. pnpm i to install dependencies.
  2. Create an .env.local file from the .env.template.
  3. pnpm run db:run to spin up the MySQL server.
  4. While the db is running, run pnpm run db:seed to populate the DB.
  5. pnpm run dev to run the app.

Testing e2e

  1. Create an .env.test.local file from the .env.template.
  2. Run e2e tests with pnpm run test:e2e.

Profiling

  • Tried running Lighthouse. Output files are located in profiling/lighthouse.
  • Setup @next/bundle-analyzer (based on this docs) and run it with pnpm run build:analyze.
  • Recorded a heap profile using node --heap-prof node_modules/next/dist/bin/next build to look for memory issues. This generated a .heapprofile and is inspected by loading the file using Chome Dev Tools on the memory tab.

Testing BDD with Cucumber

  1. Run pnpm run test:bdd.

About

Next.js repo working with e2e test using Playwright, doing load and stress testing with JMeter and BDD with Cucumber.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published