Parasoft dotTEST is a unified, fully integrated testing solution for .NET software development. dotTEST uses a comprehensive set of analysis techniques, including pattern-based static analysis, dataflow analysis, metrics, code coverage, and more, to help you verify code quality and ensure compliance with industry standards, such as CWE and OWASP.
This image is based on Windows OS and includes:
c:/dottest)parasoft.eula.accepted from false to true in the examples below.To license Parasoft dotTEST, create a dottestcli.properties configuration file with the license settings:
# Accept the Parasoft EULA to use this product
parasoft.eula.accepted=false
# Specify the license edition or features
dottest.license.network.edition=server_compliance_edition
# For license retrieved from License Server:
license.network.host=<HOST>:<PORT>
license.network.enabled=true
# For license retrieved from DTP Server:
dtp.url=<SERVER:PORT>
dtp.user=<USER>
dtp.password=<PASSWORD>
The dottestcli.properties file should be placed in one of the following locations accessible inside the running container:
c:/dottest). See Licensing.pathOnPhysicalMachine (Example: c:\userPath\dottestcli.properties), which will be used with the dotTEST -settings option.To run the dotTEST command line interface:
$ docker run --rm dottest dottestcli -help
To log into the container:
$ docker run --rm -it dottest cmd
In this example, a solution is located inside the container. The pathOnPhysicalMachine will be linked to the running container, so that the dottestcli.properties configuration file can be accessed by dotTEST. Also, the analysis report will be generated in the mounted pathOnPhysicalMachine\reports directory.
dottestcli.properties configuration file in the pathOnPhysicalMachine directory (see Licensing).$ docker run --rm --mount type=bind,source="pathOnPhysicalMachine",target="c:\dockerWorkdir" dottest dottestcli -solution "C:\dottest\examples\NET Framework\VS2022\SourceCode\BankExample\BankExample.sln" -config "builtin://Recommended Rules" -settings "C:\dockerWorkdir\dottestcli.properties" -report "c:\dockerWorkdir\reports"pathOnPhysicalMachine\reports.In this example, a solution, located in the pathOnPhysicalMachine directory, is linked to the docker. The directory will be mounted to the running container, so that all solution files and the dottestcli.properties configuration file can be accessed by dotTEST. Also, the analysis report will be generated in the mounted directory pathOnPhysicalMachine\reports.
dottestcli.properties configuration file in the pathOnPhysicalMachine directory (see Licensing).pathOnPhysicalMachine directory:
$ docker run --rm --mount type=bind,source="pathOnPhysicalMachine",target="c:\dockerWorkdir" dottest dottestcli -solution "C:\dockerWorkdir\NET Framework\VS2022\SourceCode\BankExample\BankExample.sln" -config "builtin://Recommended Rules" -settings "C:\dockerWorkdir\dottestcli.properties" -report "c:\dockerWorkdir\reports"
pathOnPhysicalMachine\reports.In this example, a container will be created first and dotTEST will analyze the solution in it.
Create and configure the dottestcli.properties configuration file in the pathOnPhysicalMachine directory (see Licensing).
Run VSTest tests with coverage inside the container:
$ docker run --rm --mount type=bind,source="pathOnPhysicalMachine",target="c:\dockerWorkdir" dottest dottestcli -solution "C:\dockerWorkdir\NET Framework\VS2022\SourceCode\BankExample\BankExampleWithTests.sln" -config "builtin://Run VSTest Tests with Coverage" -settings "C:\dockerWorkdir\dottestcli.properties" -report "c:\dockerWorkdir\reports"
Review the analysis report in pathOnPhysicalMachine\reports.
You can customize the Parasoft dotTEST image. The following example shows a Dockerfile for building a dotTEST image with the dottestcli.properties configuration file copied into the c:\dottest directory:
FROM parasoft/dottest
# install git-lfs
RUN Invoke-WebRequest 'https://github.com/git-lfs/git-lfs/releases/download/v3.0.2/git-lfs-windows-v3.0.2.exe' -OutFile git_lfs.exe; \
c:/git_lfs.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES; \
$env:PATH = $env:PATH + ';C:/Program Files/Git LFS'; \
Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\' -Name Path -Value $env:PATH;
RUN del -Force git_lfs.exe
# pre-configure parasoft user environment together with dotTEST by copying dottestcli.properties into directory
# dottest tool is in folder c:/dottest
COPY dottestcli.properties c:/dottest
You need to view and agree to the Parasoft End User License Agreement (EULA) for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses. As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Content type
Image
Digest
sha256:e02da72ac…
Size
5.2 GB
Last updated
26 days ago
docker pull parasoft/dottest