Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ jobs:
version: v2.15.0
args: --tests=false --timeout=5m

goland-extension:
name: GoLand Extension
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21

- name: Build and test plugin
working-directory: goland-extension
run: ./gradlew test buildPlugin verifyPlugin --no-daemon --no-configuration-cache

update-coverage:
name: Update coverage report
needs: test
Expand Down
34 changes: 2 additions & 32 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,11 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.9.0] - 2026-10-22
## Unreleased

### Added

- `testo.Plugins` function to get plugin instances of a given `T`.

## [1.8.0] - 2026-08-30

### Added

- `t.Attr` method is now natively supported by testo and can be overridden.

### Changed

- Minimum go version was updated to `1.25`.
- Reduced allocations by testo by replacing `.Interface().(T)` with `reflect.TypeAssert` internally.

## [1.7.0] - 2026-07-25

### Changed

- Panic failure messages now name the phase that panicked (test, sub-test, or the specific suite/plugin hook).
- Panics in `BeforeAll` & `AfterAll` hooks (both suite and plugin) are now caught and recorded as test failures; a panic in `BeforeAll` still prevents the suite tests from running.
- `t.Setenv` and `t.Chdir` now enforce the standard library's conflict guards against `t.Parallel`.
- The error for a non-pointer exported field now names the owning type and field.
- Better wording for a warning when `CasesXxx` returns an empty slice.

### Fixed

- Panics in tests now record the actual recovered value, and are observed by after-hooks as a failed test.
- Plugin hooks and overrides with equal priority now run deterministically, in the declaration order of plugins.
- Overrides are now applied in the documented priority order, consistent with hooks.
- `t.Error` called after `t.Fatal` (e.g. from a cleanup) no longer downgrades the recorded fatal failure kind.
- Annotations no longer leak between instantiations of a generic suite.
- Persistent cache reads no longer follow a symlink swapped in after validation.
- Added a GoLand extension for running and debugging individual Testo suite tests from editor gutter actions.

## [1.6.0] - 2026-07-17

Expand Down
4 changes: 4 additions & 0 deletions goland-extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gradle/
.intellijPlatform/
build/

42 changes: 42 additions & 0 deletions goland-extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# GoLand Testo

GoLand extension for Go testing framework testo.

It provides gutter actions to run (and debug) either specific suite test or whole suite.

It automatically determines a suite caller (a regular test which calls `testo.RunSuite`)
and runs it using GoLand's native Go Test run configuration.

Whole-suite actions are shown on `testo.RunSuite(...)` calls. Individual suite test actions are
shown on suite test methods like `func (s *Suite) TestSomething(...)`.

The extension supports suite callers with default, aliased and dot imports of `github.com/ozontech/testo`.
It also detects direct suite arguments like `Suite{}`, `&Suite{}` and `new(Suite)`.

## Install from source

Ensure you have installed:

- [GoLand itself](https://www.jetbrains.com/go/download/)
- [JDK 21](https://adoptium.net/temurin/releases/)

Then, do the rest:

```bash
# Clone the repository
git clone https://github.com/ozontech/testo.git
cd testo/goland-extension

# Build extension
./gradlew buildPlugin
```

You will get a `testo-goland-extension-0.1.0.zip` file in `build/distributions`.

You can install it using the "Install Plugin from Disk..." action in GoLand:

```text
Settings | Plugins | Gear icon | Install Plugin from Disk...
```

Point GoLand to the `.zip` file and restart the IDE when prompted.
36 changes: 36 additions & 0 deletions goland-extension/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import org.jetbrains.intellij.platform.gradle.TestFrameworkType

plugins {
id("java")
id("org.jetbrains.intellij.platform")
}

group = "com.ozontech.testo"
version = "0.1.0"

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType<JavaCompile>().configureEach {
options.release = 17
}

dependencies {
intellijPlatform {
goland("2026.1.4")
bundledPlugin("org.jetbrains.plugins.go")
testFramework(TestFrameworkType.Platform)
}

testImplementation("junit:junit:4.13.2")
}

intellijPlatform {
pluginConfiguration {
ideaVersion {
sinceBuild = "261"
}
}
}
3 changes: 3 additions & 0 deletions goland-extension/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.configuration-cache=true

Binary file not shown.
7 changes: 7 additions & 0 deletions goland-extension/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading