Sha256: c763c58a6c51118d51744baa748134233c826eb3d6321eba12f03fb7d68f5fbe

Contents?: true

Size: 1.63 KB

Versions: 62

Compression:

Stored size: 1.63 KB

Contents

program NucleotideCountTest;

{$IFNDEF TESTINSIGHT}
{$APPTYPE CONSOLE}
{$ENDIF}{$STRONGLINKTYPES ON}
uses
  System.SysUtils,
  {$IFDEF TESTINSIGHT}
  TestInsight.DUnitX,
  {$ENDIF }
  DUnitX.Loggers.Console,
  DUnitX.Loggers.Xml.NUnit,
  DUnitX.TestFramework,
  uNucleotideCountTest in 'uNucleotideCountTest.pas',
  uNucleotideCount in 'uNucleotideCount.pas';

var
  runner : ITestRunner;
  results : IRunResults;
  logger : ITestLogger;
  nunitLogger : ITestLogger;
begin
{$IFDEF TESTINSIGHT}
  TestInsight.DUnitX.RunRegisteredTests;
  exit;
{$ENDIF}
  try
    //Check command line options, will exit if invalid
    TDUnitX.CheckCommandLine;
    //Create the test runner
    runner := TDUnitX.CreateRunner;
    //Tell the runner to use RTTI to find Fixtures
    runner.UseRTTI := True;
    //tell the runner how we will log things
    //Log to the console window
    logger := TDUnitXConsoleLogger.Create(true);
    runner.AddLogger(logger);
    //Generate an NUnit compatible XML File
    nunitLogger := TDUnitXXMLNUnitFileLogger.Create(TDUnitX.Options.XMLOutputFile);
    runner.AddLogger(nunitLogger);
    runner.FailsOnNoAsserts := False; //When true, Assertions must be made during tests;

    //Run tests
    results := runner.Execute;
    if not results.AllPassed then
      System.ExitCode := EXIT_ERRORS;

    {$IFNDEF CI}
    //We don't want this happening when running under CI.
    if TDUnitX.Options.ExitBehavior = TDUnitXExitBehavior.Pause then
    begin
      System.Write('Done.. press <Enter> key to quit.');
      System.Readln;
    end;
    {$ENDIF}
  except
    on E: Exception do
      System.Writeln(E.ClassName, ': ', E.Message);
  end;
end.

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trackler-2.0.6.17 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.16 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.15 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.14 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.13 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.12 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.11 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.10 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.9 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.8 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.7 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.6 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.5 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.4 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.3 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.2 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.1 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.6.0 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.5.18 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr
trackler-2.0.5.17 tracks/pascal/exercises/nucleotide-count/NucleotideCountTest.dpr