-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from pestphp/feat-coverage
feat(runner): Add coverage and rerun support
- Loading branch information
Showing
36 changed files
with
641 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
src/main/java/com/pestphp/pest/configuration/PestRunConfiguration.java
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/java/com/pestphp/pest/configuration/PestRunConfigurationSettings.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/main/java/com/pestphp/pest/configuration/PestRunConfigurationType.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
src/main/java/com/pestphp/pest/configuration/PestRunnerSettings.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/main/java/com/pestphp/pest/configuration/PestVersionDetector.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/main/java/com/pestphp/pest/configuration/PhpTestRunConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.pestphp.pest.configuration; | ||
|
||
import com.intellij.execution.configurations.ConfigurationFactory; | ||
import com.intellij.openapi.project.Project; | ||
import com.jetbrains.php.PhpTestFrameworkVersionDetector; | ||
import com.jetbrains.php.testFramework.PhpTestFrameworkType; | ||
import com.jetbrains.php.testFramework.run.PhpTestRunConfigurationHandler; | ||
import com.jetbrains.php.testFramework.run.PhpTestRunnerSettingsValidator; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public abstract class PhpTestRunConfiguration extends com.jetbrains.php.testFramework.run.PhpTestRunConfiguration { | ||
protected PhpTestRunConfiguration(Project project, ConfigurationFactory factory, String name, @NotNull PhpTestFrameworkType frameworkType, @NotNull PhpTestRunnerSettingsValidator validator, @NotNull PhpTestRunConfigurationHandler handler, @Nullable PhpTestFrameworkVersionDetector versionDetector) { | ||
super(project, factory, name, frameworkType, validator, handler, versionDetector); | ||
} | ||
|
||
@Override | ||
public void setBeforeRunTasks(@NotNull List value) { | ||
super.setBeforeRunTasks(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.pestphp.pest | ||
|
||
import com.intellij.AbstractBundle | ||
import org.jetbrains.annotations.NonNls | ||
import org.jetbrains.annotations.PropertyKey | ||
|
||
@NonNls | ||
private const val BUNDLE = "pestBundle" | ||
|
||
object PestBundle : AbstractBundle(BUNDLE) { | ||
@Suppress("SpreadOperator") | ||
@JvmStatic | ||
fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.pestphp.pest | ||
|
||
import com.intellij.execution.configurations.ConfigurationType | ||
import com.jetbrains.php.testFramework.PhpTestFrameworkComposerConfig | ||
import com.pestphp.pest.configuration.PestRunConfigurationType.Companion.instance | ||
|
||
class PestComposerConfig : PhpTestFrameworkComposerConfig(PestFrameworkType.instance, PACKAGE, RELATIVE_PATH) { | ||
override fun getDefaultConfigName(): String { | ||
return "phpunit.xml" | ||
} | ||
|
||
override fun getConfigurationType(): ConfigurationType { | ||
return instance | ||
} | ||
|
||
companion object { | ||
private const val PACKAGE = "pestphp/pest" | ||
private const val RELATIVE_PATH = "pestphp/pest/bin/pest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.pestphp.pest | ||
|
||
import com.jetbrains.php.testFramework.PhpTestFrameworkFormDecorator | ||
import com.jetbrains.php.testFramework.PhpTestFrameworkFormDecorator.PhpDownloadableTestFormDecorator | ||
import com.jetbrains.php.testFramework.PhpTestFrameworkType | ||
import org.jetbrains.annotations.Nls | ||
import org.jetbrains.annotations.NonNls | ||
import javax.swing.Icon | ||
|
||
class PestFrameworkType : PhpTestFrameworkType() { | ||
override fun getDisplayName(): @Nls String { | ||
return PestBundle.message("FRAMEWORK_NAME") | ||
} | ||
|
||
override fun getID(): String { | ||
return ID | ||
} | ||
|
||
override fun getIcon(): Icon { | ||
return PestIcons.LOGO | ||
} | ||
|
||
override fun getDecorator(): PhpTestFrameworkFormDecorator? { | ||
return PhpDownloadableTestFormDecorator("https://github.com/pestphp/pest/releases") | ||
} | ||
|
||
companion object { | ||
@NonNls | ||
val ID = "Pest" | ||
val instance: PhpTestFrameworkType | ||
get() = getTestFrameworkType(ID) | ||
} | ||
} |
Oops, something went wrong.