This folder contains all tests performed in this monorepo.
As It got quite large and complex, this reamde is a try to make things less opaque for contributors.
This is the main way of running tests from the command line.
Either use build.cmd or build.sh depending on your OS to run test targets, e.g. :
build.cmd runTestsAll
build.sh runTestsCore
Available test targets are:
RunTestsAll- runs all testsRunTestsCore- runs all tests in theCoreTestsfolderRunTestsExtensionLibs- runs all tests in theExtensionLibTestsfolderRunTestsJSTests- runs all tests in theJSTestsfolder
You can also run tests from within Visual Studio using the Test Explorer.
Common contains all common code used in the test suite.
This includes the TestUtils and TestCharts modules, which contain utility functions for testing and the actual chart objets to use in tests.
The projects contained here are FSharpTestBase.fsproj and CSharptestBase.csproj - classlibs that contain the above for each language respectively.
ConsoleApps is a folder containing projects that use any amount of the other projects in this repo.
They are not TestProjects as in that they contain UnitTests, but are more thought of as playgrounds
to manually test functionality of the projects in a console application.
CoreTests contains all UnitTests for the core Plotly.NET F# project. This is by far the largest test suite.
Currently, the following test projects are contained:
The largets test suite by far that tests all things Plotly.NET, such as HTML code generation, JSON serialization, Object validity, etc.
Testing usage of the core F# API from C#
ExtensionLibTests contains all UnitTests for extension libraries, such as Plotly.NET.CSharp or Plotly.NET.ImageExport.
JSTests contains all UnitTests that run on node.js. The main application here is the validation of generated JSON via the Plotly.validate function in the plotly.js library.