File: fpcunitproject1.inc

package info (click to toggle)
lazarus 1.6.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 172,444 kB
  • ctags: 124,173
  • sloc: pascal: 1,528,777; xml: 260,232; sh: 3,008; java: 603; makefile: 512; perl: 297; sql: 222; ansic: 137
file content (28 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
NewSource := 
    'program FPCUnitProject1;' + #13
  + #13
  + '{$mode objfpc}{$H+}' + #13
  + #13
  + 'uses' + #13
  + '  Classes, consoletestrunner;' + #13
  + #13
  + 'type' + #13
  + #13
  + '  { TLazTestRunner }' + #13
  + #13
  + '  TMyTestRunner = class(TTestRunner)' + #13
  + '  protected' + #13
  + '  // override the protected methods of TTestRunner to customize its behavior' + #13
  + '  end;' + #13
  + #13
  + 'var' + #13
  + '  Application: TMyTestRunner;' + #13
  + #13
  + 'begin' + #13
  + '  Application := TMyTestRunner.Create(nil);' + #13
  + '  Application.Initialize;' + #13
  + '  Application.Title := ''FPCUnit Console test runner'';' + #13
  + '  Application.Run;' + #13
  + '  Application.Free;' + #13
  + 'end.' + #13
;