• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Camelcade / Perl5-IDEA / #525521561

31 May 2025 05:44PM UTC coverage: 82.289% (+0.04%) from 82.248%
#525521561

push

github

hurricup
Added category filtering for parametrized tests

The other way is to create the own runner, but this feels easier.

30884 of 37531 relevant lines covered (82.29%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.57
/plugin/coverage/src/main/java/com/perl5/lang/perl/coverage/PerlCoverageSuite.java
1
/*
2
 * Copyright 2015-2025 Alexandr Evstigneev
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.perl5.lang.perl.coverage;
18

19
import com.intellij.coverage.BaseCoverageSuite;
20
import com.intellij.coverage.CoverageEngine;
21
import com.intellij.execution.configurations.RunConfigurationBase;
22
import com.perl5.lang.perl.idea.run.GenericPerlRunConfiguration;
23
import org.jetbrains.annotations.NotNull;
24

25
import java.util.Date;
26
import java.util.Objects;
27

28
public class PerlCoverageSuite extends BaseCoverageSuite {
29
  public PerlCoverageSuite() {
×
30
  }
×
31

32
  public PerlCoverageSuite(@NotNull PerlCoverageEnabledConfiguration config) {
33
    super(config.createSuiteName(),
1✔
34
          config.getConfiguration().getProject(),
1✔
35
          config.getCoverageRunner(),
1✔
36
          config.createFileProvider(),
1✔
37
          new Date().getTime());
1✔
38
  }
1✔
39

40

41
  @Override
42
  public @NotNull GenericPerlRunConfiguration getConfiguration() {
43
    return Objects.requireNonNull((GenericPerlRunConfiguration)super.getConfiguration());
1✔
44
  }
45

46
  @Override
47
  public void setConfiguration(RunConfigurationBase configuration) {
48
    if (!(configuration instanceof GenericPerlRunConfiguration)) {
1✔
49
      throw new RuntimeException("Got " + configuration);
×
50
    }
51
    super.setConfiguration(configuration);
1✔
52
  }
1✔
53

54
  @Override
55
  public @NotNull CoverageEngine getCoverageEngine() {
56
    return PerlCoverageEngine.getInstance();
1✔
57
  }
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc