mbolotov / k6-intellij-plugin Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
The run configuration must allow specifying the path to k6
cli.
Currently, the plugin is using a system path to detect k6 binary. When working with extensions it is required to build a new binary that could be project-specific. The plugin should support setting binary path for the project.
Would be nice to have the ability to run k6 from inside WSL.
This can easily be done automatically by detecting if the path starts with a WSL path \\wsl$
Being able to run from a docker container would be nice as well.
I am using plugin version 0.3.0 (installed from disk) and I expected to get a fix of this issue in the latest version but still it's impossible to start the test using plugin. The error is: "Cannot run program k6 (in directory "/Users/xxx/Projects/performance"): error=2, No such file or directory."
The same command works successfully in console.
I have Webstorm on macOS Ventura. K6 version is v0.42.0.
Progress bar every time make new line
Original issue: grafana/k6-intellij-plugin#6
I wrote a simple k6 test case in JS and installed this plugin from marketplace. I can run the test case from IDE but unable to debug the test case. Please let me know if I am missing anything here.
k6 Script path
UI field in a run configuration should support a path relative to the project root.
Original issue: grafana/k6-intellij-plugin#12
Whenever I do foo = http.post(...)
, IntelliJ complains that http.post
is not returning a value and that that's probably an error.
The tooltip refers to a Session.http
function, which I suspect is from NodeJS; anyway, it has a completely different signature than K6' Session
.
This plugin causes PHPStorm to freeze for a few seconds whenever I right click a file. Also caused my xdebug sessions to be unusable.
This may have something to do with my projects being in WSL.
With the following file structure:
❯ tree .
.
├── K6
│ ├── SmokeTestFramework
│ │ └── CoffeeReadyEmptyNameSmokeTest.js
└── proto
└── theBusyBean
└── CoffeeMaker.proto
and the following code in CoffeeReadyEmptyNameSmokeTest.js
import grpc from 'k6/net/grpc';
import {check} from "k6";
const client = new grpc.Client();
client.load(['../../proto/theBusyBean'], 'CoffeeMaker.proto');
export default () => {
client.connect('localhost:50051', {
plaintext: true,
});
const order = "White Coffee";
const params = {ClientName: "", Order: order};
const response = client.invoke('test.logic.CoffeeMaker.CoffeeShopService/CoffeeReady', params);
check(response, {
'need clientname': (r) => r.status === grpc.StatusInvalidArgument,
});
client.close()
}
I see run button to the left of export default () => {
.
But it returns in the following error:
k6 run /var/folders/pm/v0wmsjz114q453d5qx21svrc0000gp/T/CoffeeReadyEmptyNameSmokeTest.js
Testing started at 10:40 am ...
/\ |‾‾| /‾‾/ /‾‾/
/\ / \ | |/ / / /
/ \/ \ | ( / ‾‾\
/ \ | |\ \ | (‾) |
/ __________ \ |__| \__\ \_____/ .io
ERRO[0000] GoError: ../proto/theBusyBean/CoffeeMaker.proto: stat /var/folders/pm/v0wmsjz114q453d5qx21svrc0000gp/proto/theBusyBean/CoffeeMaker.proto: no such file or directory
at reflect.methodValueCall (native)
at file:///Users/somename/Documents/Repos/testing-repos/UdemyGRPCService-main/UdemyGRPCK6Incomplete/com.github.grpc/src/main/K6/SmokeTestFramework/CoffeeReadyEmptyNameSmokeTest.js:6:12(36)
at go.k6.io/k6/js.(*requireImpl).require-fm (native)
at file:///var/folders/pm/v0wmsjz114q453d5qx21svrc0000gp/T/CoffeeReadyEmptyNameSmokeTest.js:4:21(30) hint="script exception"
The same works fine if I change path to absolute path or if I run in terminal using k6 run CoffeeReadyEmptyNameSmokeTest.js
I use IntelliJ IDEA 2023.2.4 (Ultimate Edition)
with k6 plugin version0.3.0
on Apple M2 Macbook Pro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.