Telerik® JustCode™ by Progress

Telerik® JustCode™'s unit test runner allows you to run and debug tests.

To Run and Debug Tests from Unit Test Window

  1. Build your project - Telerik® JustCode™ recognizes a test inside your project only after it has been built.
  2. Navigate on the main menu Just Code / Windows / Show Unit Test Window. Unit Test Window opens.
  3. From here you can choose how to run or debug your tests from a couple of options:

    1. Unit Test Window Icon Run Selected Tests Run Selected Tests - Select the tests you want to run from the tree and click the button.
    2. Unit Test Window Icon Run All Tests Run All Tests - Click the button to run all tests inside your solution.
    3. Unit Test Window Icon Debug Selected Tests Debug Selected Tests - Select tests that you want to debug from the tree and click the button.
    4. Test Select Tests 2 Run

      As you can see in the figure above when you select a failed test a stacktrace will be shown in the Details pane on the right side. Using it you can navigate to the class, method or line causing it to fail.

    5. Once you've run a test, a progress bar is shown to indicate how many tests are currently running. Normally it is green color, but if any test fails it turns red.

      Test Run Progress

      Also a busy indicator is shown next to currently running test, the class and namespace it's defined in.

      Test Test Running
    6. You can click the Unit Test Window Icon Abort Test Run button to abort a test run.
    7. As soon as all tests have been run, results are shown on the right side.

    To Run and Debug Tests from Solution Explorer Window

    1. Open the Solution Explorer Window.
    2. From the solution tree select the item that contains the unit tests you would like to run.

      This item can be either a solution folder, project, folder or a single file.

    3. Right-Click the selected item and hover over JustCode.
    4. From here you can choose whether to run or debug your tests:

      1. Unit Test Window Icon Run Selected Tests Run Tests - simply runs all tests contained in the selected item.
      2. Unit Test Window Icon Debug Selected Tests Debug Tests - executes in debug mode all tests contained in the selected item.
      3. Just Run Test Solution Explorer

      Using Custom HTML page for running Jasmine tests

      1. Include Jasmine references to the page.

      2. Add the following JavaScript to the custom HTML page:

        CopyC#
        <script type="text/javascript">
          (function () {
          var jasmineEnv = jasmine.getEnv();
          jasmineEnv.updateInterval = 1000;
        
          var trivialReporter = new jasmine.TrivialReporter();
        
          jasmineEnv.addReporter(trivialReporter);
        
          jasmineEnv.specFilter = function (spec) {
          return trivialReporter.specFilter(spec);
          };
        
          var currentWindowOnload = window.onload;
        
          window.onload = function () {
          if (currentWindowOnload) {
          currentWindowOnload();
          }
          execJasmine();
          };
        
          function execJasmine() {
          jasmineEnv.execute();
          }
          })();
        </script>
      3. You are ready to use your custom page.

      Supported frameworks

      • MSTest
      • xUnit
      • NUnit 2.5
      • MbUnit 2.4
      • MSpec
      • MbUnitv3
      • Gallio
      • Jasmine
      • QUnit

      See Also

      Other Resources