Search in sources :

Example 1 with ManifestLoader

use of com.google.jstestdriver.util.ManifestLoader in project intellij-plugins by JetBrains.

the class JstdConfigParsingUtils method wipeCoveragePlugin.

/**
   * Wiping coverage section in a configuration file makes sense because:
   * <ul>
   *   <li>running tests without coverage (via Shift+F10) doesn't handle coverage output</li>
   *   <li>running tests with coverage has its own special configuration</li>
   * </ul>
   * @param configuration
   */
public static void wipeCoveragePlugin(@NotNull ParsedConfiguration configuration) {
    ManifestLoader manifestLoader = new ManifestLoader();
    Iterator<Plugin> iterator = configuration.getPlugins().iterator();
    while (iterator.hasNext()) {
        Plugin plugin = iterator.next();
        if (isCoveragePlugin(plugin, manifestLoader)) {
            iterator.remove();
        }
    }
}
Also used : ManifestLoader(com.google.jstestdriver.util.ManifestLoader) Plugin(com.google.jstestdriver.Plugin)

Aggregations

Plugin (com.google.jstestdriver.Plugin)1 ManifestLoader (com.google.jstestdriver.util.ManifestLoader)1