-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integ-runner: complaining Please use the IntegTest construct to configure the test #28946
Comments
For visibility, there’s a recent change that was released in 2.124.0 to only allow |
@GavinZZ Thank you but I guess it might not be related. This works for me with the following steps with cdk 2.125.0 // initiate a new project
$ cdk init -l typescript
$ mkdir test/integ
// edit test/integ/integ.main.ts and past all content mentioned above in the ts file and save.
$ yarn add @aws-cdk/integ-tests-alpha
$ yarn add @aws-cdk/integ-runner
$ npx integ-runner --directory test/integ You see the error message
Now, run again with
However, if you initiate your project with $ npx projen new awscdk-app-ts edit const { awscdk } = require('projen');
const project = new awscdk.AwsCdkTypeScriptApp({
cdkVersion: '2.1.0',
defaultReleaseBranch: 'main',
name: 'repro5',
devDeps: [
'@aws-cdk/integ-tests-alpha',
'@aws-cdk/integ-runner',
],
});
project.synth(); $ npx projen
$ mkdir test/integ
// edit test/integ/integ.main.ts and save
$ npx integ-runner --directory test/integ // got the error
$ npx integ-runner --directory test/integ --update-on-failed Then I get the error
|
This is a very confusing error. I have upgraded from 2.100 to 2.122 and got completely destroyed with the integ-runner. I get the alpha status and all, but it'd be great to get some more context on these errors. These errors are not readable and do not point to any docs. Error 1:
That's just super weird and feels like a hack. Error 2:
u wot m8? |
After a long search I found it: You need to upgrade the "@aws-cdk/integ-runner" to a newer version. By default it picks something around 2.72 which does not work... |
@hoegertn Thank you for your time. I will validate that again. |
Describe the bug
integ-runner is complaining
while my test has been using
IntegTest
in the test.Expected Behavior
integ-runner should not complain the error
Current Behavior
It's complaining the error(see reproduction steps below)
Reproduction Steps
in test/integ/integ.main.ts
When I run
npx integ-runner --directory test/integ
, I gotAnd run it again with
--update-on-failed
I got
But I am actually using
IntegTest
.Possible Solution
No response
Additional Information/Context
integ-runner version "2.72.1"
integ-tests-alpha version "2.124.0-alpha.0"
CDK CLI Version
2.124.0 (build 4b6724c)
Framework Version
No response
Node.js Version
v18.16.0
OS
Mac OS X
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: