Fixed bug java.lang.NullPointerException on phpstorm startup (#45)
2.0.0-beta.3
-
The Create Test dialog does not autoupdate the target namespace and directory if invoked from the directory context (#26)
-
Added some handy inspections that make sure all your tests are actually executed (#3, #32)
-
You can right-click a single test case file to run it (#23)
-
Added support for nette/tester@dev-master for the time being (#30)
-
Fixed: bootstrap relative path resolves correctly if the target directory does not exist (#25)
+
The Create Test dialog does not autoupdate the target namespace and directory if invoked from the directory context (#26)
+
Added some handy inspections that make sure all your tests are actually executed (#3, #32)
+
You can right-click a single test case file to run it (#23)
+
Added support for nette/tester@dev-master for the time being (#30)
+
Fixed: bootstrap relative path resolves correctly if the target directory does not exist (#25)
Fixed: comparison failure reporting was broken on Unix systems
2.0.0-beta.2
I know I said this release branch would be feature-frozen, but... well... not just yet. I'm far too excited about bringing the new features to be able to postpone them. Semver doesn't play well with the plugin's distribution channel anyway. Here they come:
-
In the project settings, you can configure the path to your bootstrap file; it is then automatically required in the created test files (see #20 for instructions if it does not work right away)
-
You can now right-click a single test method to run or debug it in isolation (#9)
-
Fixed: OutputHandler now recognizes and correctly parses the diff command generated on Windows (#21)
-
Fixed: OutputHandler no longer reports unsuccessful builds as "terminated" (#22)
+
In the project settings, you can configure the path to your bootstrap file; it is then automatically required in the created test files (see #20 for instructions if it does not work right away)
+
You can now right-click a single test method to run or debug it in isolation (#9)
+
Fixed: OutputHandler now recognizes and correctly parses the diff command generated on Windows (#21)
+
Fixed: OutputHandler no longer reports unsuccessful builds as "terminated" (#22)
2.0.0-beta.1
diff --git a/resources/META-INF/pluginIcon.svg b/resources/META-INF/pluginIcon.svg
new file mode 100644
index 0000000..429e6a0
--- /dev/null
+++ b/resources/META-INF/pluginIcon.svg
@@ -0,0 +1,25 @@
+
+
diff --git a/src/cz/jiripudil/intellij/nette/tester/projectSettings/TesterProjectSettings.java b/src/cz/jiripudil/intellij/nette/tester/projectSettings/TesterProjectSettings.java
index 925bc1b..f2615fb 100644
--- a/src/cz/jiripudil/intellij/nette/tester/projectSettings/TesterProjectSettings.java
+++ b/src/cz/jiripudil/intellij/nette/tester/projectSettings/TesterProjectSettings.java
@@ -12,7 +12,7 @@
@Tag("testerSettings")
public class TesterProjectSettings {
@NotNull private String defaultExtension = "phpt";
- @NotNull private String testerVersion = "< 2.0";
+ @NotNull private String testerVersion = ">= 2.0";
@Nullable private String bootstrapFile;
@NotNull private List namespaceMappings = new ArrayList<>();
diff --git a/src/cz/jiripudil/intellij/nette/tester/projectSettings/editor/TesterConfigurableForm.java b/src/cz/jiripudil/intellij/nette/tester/projectSettings/editor/TesterConfigurableForm.java
index 0c02fbc..f0acdb9 100644
--- a/src/cz/jiripudil/intellij/nette/tester/projectSettings/editor/TesterConfigurableForm.java
+++ b/src/cz/jiripudil/intellij/nette/tester/projectSettings/editor/TesterConfigurableForm.java
@@ -63,8 +63,8 @@ public void apply() {
return;
}
- settings.setDefaultExtension((String) defaultExtensionCombobox.getSelectedItem());
- settings.setTesterVersion((String) testerVersionCombobox.getSelectedItem());
+ settings.setDefaultExtension(StringUtil.notNullize((String) defaultExtensionCombobox.getSelectedItem()));
+ settings.setTesterVersion(StringUtil.notNullize((String) testerVersionCombobox.getSelectedItem()));
settings.setBootstrapFile(bootstrapFileField.getText());
// lists work with references which complicates detecting modification, cloning each item helps
@@ -79,7 +79,7 @@ public void reset() {
}
defaultExtensionCombobox.setSelectedItem(settings.getDefaultExtension());
- testerVersionCombobox.setSelectedItem(settings.getTesterVersion());
+ testerVersionCombobox.setSelectedItem(settings.getTesterVersion().equals("> 2.0") ? ">= 2.0" : settings.getTesterVersion());
bootstrapFileField.setText(settings.getBootstrapFile());
// lists work with references which complicates detecting modification, cloning each item helps
@@ -97,7 +97,7 @@ private void createUIComponents() {
defaultExtensionCombobox = new ComboBox<>(new String[]{"phpt", "php"});
testerVersionLabel = new JBLabel(TesterBundle.message("settings.testerVersion"));
- testerVersionCombobox = new ComboBox<>(new String[]{"< 2.0", "> 2.0"});
+ testerVersionCombobox = new ComboBox<>(new String[]{"< 2.0", ">= 2.0"});
bootstrapFileLabel = new JBLabel(TesterBundle.message("settings.bootstrapFile"));
bootstrapFileField = new TextFieldWithBrowseButton();