| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Use this workflow when a Plotly.NET test needs an expected string derived from actual chart output.
Generate the real chart output first, inspect it, then copy only the stable part into the test as the expected value.
Do not hand-write large expected strings from memory.
The script loads Plotly.NET assemblies from tests/ConsoleApps/CSharpConsole/bin/Debug/net10.0/. Before running the script, verify that directory contains Plotly.NET.dll and Plotly.NET.CSharp.dll. If it is empty or the DLLs are missing, build them first via the FAKE pipeline:
./build.cmd BuildAny of the Run*TestsFast targets also produce these assemblies as a side effect, so if you are about to run tests anyway you can skip the explicit build step.
If you edit sources in src/Plotly.NET or src/Plotly.NET.CSharp during the investigation, rebuild before re-running the script. dotnet fsi will happily use stale assemblies.
Always use tools/chart-baseline-generation/generate-chart-markup.fsx as the investigation harness. Do not create or edit console app projects for this workflow.
Edit createChart() in tools/chart-baseline-generation/generate-chart-markup.fsx, run the script for the section you need, inspect the generated output, then revert the temporary chart expression when finished.
dotnet fsi tools/chart-baseline-generation/generate-chart-markup.fsx
dotnet fsi tools/chart-baseline-generation/generate-chart-markup.fsx -- data
dotnet fsi tools/chart-baseline-generation/generate-chart-markup.fsx -- layout
dotnet fsi tools/chart-baseline-generation/generate-chart-markup.fsx -- html
dotnet fsi tools/chart-baseline-generation/generate-chart-markup.fsx -- data --write-html temp/chart.htmlBy default, the script prints extracted stable sections to stdout and does not create temporary files.
Use --write-html <output-path> only when you explicitly want the full generated html on disk.
Pick the smallest local loop that matches the test you are editing:
Use the full ./build.cmd runTestsAll before committing.
Prefer the smallest stable assertion that proves the behavior:
Avoid asserting volatile values such as generated DOM ids.
The unified script can print sections by label:
| Back | FazBrowse Home | New Git URL |