feat: Added a --matrix-count parameter to versioned tests #230
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new option to the versioned tests runner that enables calculating the number of tests that will be run and printing only that information.
Example output
# ... snipped @prisma/client(19) prisma(104) Module Test Versions Counts @apollo/gateway 6 @apollo/server 12 @apollo/subgraph 15 @aws-sdk/client-api-gateway 322 @aws-sdk/client-bedrock-runtime 68 @aws-sdk/client-dynamodb 337 @aws-sdk/client-elastic-load-balancing 318 @aws-sdk/client-elasticache 325 @aws-sdk/client-lambda 337 @aws-sdk/client-rds 364 @aws-sdk/client-redshift 326 @aws-sdk/client-rekognition 325 @aws-sdk/client-s3 356 @aws-sdk/client-ses 321 @aws-sdk/client-sns 322 @aws-sdk/client-sqs 322 @aws-sdk/lib-dynamodb 125 @aws-sdk/util-dynamodb 342 @elastic/elasticsearch 18 @elastic/transport 8 @grpc/grpc-js 8 @hapi/hapi 7 @hapi/vision 4 @koa/router 11 @langchain/community 3 @langchain/core 2 @langchain/openai 3 @nestjs/cli 14 @prisma/client 19 amazon-dax-client 1 amqplib 6 apollo-server 14 apollo-server-express 14 async-listener 7 aws-sdk 1,216 axios 36 bluebird 20 body-parser 21 bunyan 2 cassandra-driver 11 connect 39 continuation-local-storage 3 director 1 ejs 21 express 16 express-enrouten 8 fastify 75 flush-write-stream 3 generic-pool 0 graphql 42 graphql-tag 18 ioredis 37 kafkajs 3 koa 16 koa-route 4 koa-router 12 memcached 1 middie 21 mongodb 46 mysql 17 mysql2 16 next 9 openai 57 parse-json 14 pg 11 pg-native 4 pino 37 prisma 104 q 3 react 42 react-dom 30 redis 19 restify 27 restify-errors 13 split2 13 superagent 27 swagger-ui-express 12 undici 59 when 1 winston 15 winston-transport 8 ---------------------------------------- total: 6,892 real 0m8.135s user 0m4.113s sys 0m1.883s