Factors that limit the number of tests in a test case

The following factors can limit the number of tests a test case can contain.

  • COBOL and PL/I compiler limits. For example, the maximum number of lines a COBOL program can contain is 999,999.
  • The region size of the job or the TSO or z/OS® UNIX shell that starts the ZUnit test runner. For example, if the test runner runs a test case that takes up 16 MB of region when copied into memory but not yet run, and the region size is 4 MB, out of memory errors or storage conditions can occur.
  • Space available in the data set or the z/OS or z/OS UNIX folder that the ZUnit results are written to. For example, if a test case has 10,000 tests, it can generate a large result file (.azures), and the test runner might fail to write the results to disk even though all the results are collected in memory.
  • Memory that is required by the test runner to maintain its internal model of the results for each test. As each test is run, the test runner keeps in memory a record of the results for later serialization when the result file (.azures) is generated.