Skip to content
This repository was archived by the owner on Jun 5, 2026. It is now read-only.
This repository was archived by the owner on Jun 5, 2026. It is now read-only.

K6 Inspect Mode #13

Description

@BenjamenMeyer

I would like to be able to do linter checks using k6 inspect on my repository. It would be great to have this as an option instead of running the tests, preferably with some kind of pattern matcher (or list of patterns) to find the files to be inspected.

For example, I have the following in a Makefile:

SUB_DIRS := mytestingdir
FILES := $(foreach dir,$(SUB_DIRS), $(wildcard $(dir)/*.js))

test:
    $(foreach test_file,$(FILES), k6 inspect $(test_file) --execution-requirements --quiet)

It would be great to have something similar in the configuration so test files could be checked while ignoring support files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions