You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a test which is located at k6tests/abort.ts
import exec from 'k6/execution';
export default function(){
exec.test.abort("failed")
}
I'm compiling it into a tmp file and running it with k6
k6pack --sourcemap k6tests/abort.ts > /tmp/abort.js
k6 run /tmp/abort.js
I get this error message from k6: (some output omitted)
execution: local
script: /tmp/abort.js
output: -
ERRO[0000] test aborted: failed at abort_default (file:///tmp/k6tests/abort.ts:5:0(7))
So, the path to the error is almost right, except that it is adding /tmp/ which is the directory where the js file is.
Interestingly, if I pipe k6pack's output to k6 I get this error: (some output omitted)
k6pack --sourcemap k6tests/abort.ts | k6 run -
execution: local
script: -
output: -
ERRO[0000] test aborted: failed at abort_default (file:///k6tests/abort.ts:5:0(7))
So apparently k6 is adding the path to the input js file to the path to the original typescript file. I'm not sure if this a problem with the source map or with k6.
The text was updated successfully, but these errors were encountered:
I created a test which is located at
k6tests/abort.ts
I'm compiling it into a tmp file and running it with k6
I get this error message from k6: (some output omitted)
So, the path to the error is almost right, except that it is adding
/tmp/
which is the directory where the js file is.Interestingly, if I pipe
k6pack
's output tok6
I get this error: (some output omitted)So apparently
k6
is adding the path to the inputjs
file to the path to the original typescript file. I'm not sure if this a problem with the source map or withk6
.The text was updated successfully, but these errors were encountered: