Giter Club home page Giter Club logo

k6-intellij-plugin's People

Contributors

mbolotov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

k6-intellij-plugin's Issues

Support selecting k6 binary path

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.

relative paths broken, wrong working directory

This works:
afbeelding

This doesn't:
afbeelding

The plugin selects C:\System9\trunk\sourcesBatchKWS\VaccinnetBatchUploadCheck as the working directory, which makes no sense.

Suggested fix: allow the working directory to be specified like most run configurations do:
afbeelding

Support running under WSL

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.

Impossible to run test with the help of plugin: Cannot resolve path to file

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.

Unable to debug a test case

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.

Support K6' modules

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.

Performance issues

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.

Cannot run grpc tests with relative importPath in client.load

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.