Table of Contents
Test Results panel
In order to open the Test Results panel, click in the Main Menu:
View ⇒ Test results.
All test results, both regular jobs and deployment validation test-runs, are displayed in the Test Results panel as a level tree:
- the project — the current project, where you run tests,
- jobs — separate test-runs,
- methods — separate test methods, which the test class includes.
Each of these levels, excluding methods, can be expanded.
According to the stage, which the test is passing right now, and to the test result, every test job, class, and method can have different statuses:
Queued — the test job is in a queue on Salesforce. At this stage, the classes have the status 'Queued', but the status of the job is 'In Progress', and the classes can't be expanded.
In Progress — the test job is running now. The test job has this status until at least 1 test method is in progress. At this stage, the classes, which are in progress, can't be expanded.
Aborted — the test job is canceled. You can expand a test class and see the results for those test methods that have been finished.
Passed / Failed — an actual test result. At this stage, you can expand any test class and see separate test methods in this class.
The number of failed / passed tests jobs is calculated in the following way:
Failed: (X/Y)— there's at least 1 test class in a job or 1 test method in a class that failed.
Xis the number of failed items, while
Yis a total number of items.
Passed: (Y/Y)— all test classes in a job or all test methods in a class are passed.
NB: The test statuses aren't available for the deployment validation test-run while it is in progress.
The priority order of the test result items in the Test Result panel is as follows:
- Failed to compile / execute,
- In Progress,
- On Hold,
Quick view gives you the ability to set the visibility of test results as it can give you the maximum useful information. This feature allows you to see classes with certain results immediately expanded after a test run completes. All others are hidden under the Show all link. You can collapse this option using the arrow next to the test run.
Types of results that can be differentiated are the following:
- Passed recently (was failing on the previous test run),
- Failed recently (was successful on the previous run),
- Failed previously (was failing on the previous test run as well),
- Passed previously (was successful on the previous run as well).
First two options are set by default, but you can easily change them. To do this, just click on the settings button in the Test Results panel.
Configure which categories should be included in the Quick View by default or even turn off the feature by deselecting all categories.
The Welkin Suite remembers your settings for the Quick view even between the sessions, so next time you launch the IDE, the Quick View will look like just exactly as you set it up.
Details of the test result
In the Test Result panel, you can find all the details related to a test class or method. If you click on the test class, below the list of the test you will see the name of this class and the test result.
If you click on the test method, you will also see an option to open the log, and if the test method has failed, you will see in addition a message and a stack trace.
Settings for the Test Result panel
You are able to configure the Test Results panel and its options in the Settings window. To open it. click on the Settings button in the Test Result panel.
In this window you have the ability to set:
- if The Welkin Suite should show the test results in the editor,
- Quick View order,
- default tab in the Run Tests window.
Navigate to the code
The Test Result panel also allows you easily navigate to the code lines of the test classes or methods right in the editor. In order to do this, you just need to double-click on a test class or method in the Test Results panel. If you click on the test class, the necessary class file will be opened. If you click on the test method, this file will be opened, and a caret will be placed on the part of the code, which contains this test method.
You can see the actual tests result for each test method in the file directly in the editor — near the line numbers. The status is taken from the most recent test job which was run for this test method. If you want some more info about the test methods in the editor, each status icon has a tooltip with info about the status and when the test was executed. You can enable or disable showing the test results in the code near the test using the button Show Test Results in the Test Result panel. By default, this option is enabled once you have the Test Results panel shown.
The Welkin Suite is always ready to lend you a hand if you ever have questions about some functionality of the Test results panel or the process of accomplishing some tasks here. When you need to learn more about this tab or its elements, click on the Help icon in the top right corner of the window. You will get an opened page of The Welkin Suite's Documentation related to this functionality in your default browser.
In this section:
This also may be useful: