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.11.4
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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).

## [Unreleased]

### Added

- Added a GoLand extension for running and debugging individual Testo suite tests from editor gutter actions.

## [1.5.1] - 2026-06-17

### Fixed
Expand Down Expand Up @@ -89,6 +95,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial stable version.

[Unreleased]: https://github.com/ozontech/testo/compare/v1.5.1...HEAD
[1.5.1]: https://github.com/ozontech/testo/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/ozontech/testo/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/ozontech/testo/compare/v1.3.2...v1.4.0
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
251 changes: 251 additions & 0 deletions goland-extension/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading