getgauge / gauge

Light weight cross-platform test automation
https://gauge.org
Apache License 2.0
2.99k stars 344 forks source link

The scenario table takes up too much memory #2528

Open idore opened 6 months ago

idore commented 6 months ago

Describe the bug

step("hi", function() {
  console.log("hi");
});
# test
## test 1
table:specs/5000.csv
* hi 

The file specs/5000.csv is a csv file with 5000 lines.

num
1
2
...
5000

After executing this specification, the final memory usage reaches 11GBytes; of which gauge is 6G and html-report is 5G.

To Reproduce Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project
  2. Run the gauge command
  3. See error
$ gauge init js
$ gauge run specs

image

image

Logs

Paste any log or error messages here

Expected behavior A clear and concise description of what you expect to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

Versions:

gauge -v

Windows 10 Gauge version: 1.4.3 Plugins

go (0.2.0) html-report (4.1.2) js (4.0.0) screenshot (0.1.0)

Additional context Add any other context about the problem here.

idore commented 6 months ago

image