8000 GitHub - chriswr95/graphql-java-test-runner · GitHub
[go: up one dir, main page]

Skip to content

chriswr95/graphql-java-test-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

133 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Java Test Runner

Discuss and ask questions in our Discussions: https://github.com/graphql-java/graphql-java/discussions

This is a test runner application to measure the performance of GraphQL Java implementation.

Terraform and GCP project Setup

In order to orchestrate all gcp infrastructure we have used terraform, an open source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure. Infrastructure used by our test-runner on GCP are:

  1. Cloud Tasks Queue.
  2. Workflow.
  3. Compute Engine.
  4. Firestore.

Installation:

  1. Install terraform from Terraform
  2. Verify terraform is working locally.
  3. Create a new gcp project.
  4. Add a billing account to the above created project.
  5. Create service account on IAM & Admin->Service Account-> Create Service Account.
  6. Give the role as Basic->Owner.
  7. Select the service account created above, then go to Actions->Manage keys->Add key->Create new key->JSON.
  8. Download the key from above step and paste it in the terraform directory. Rename it as cred.json .
  9. Open terminal in terraform directory.
  10. Run terraform init
  11. Run terraform apply -var project_id=your project id present in cred.json.

Terraform will take care of all the infrastructure required by the test runner.

FYI: Firestore can be enabled only once per project and it can never be destroyed.

React App

Installation

  • In your terminal cd to test-runner-frontend folder.
  • Run npm install to install all dependencies.

Run the app locally

  • In your terminal cd to test-runner-frontend folder.
  • Run npm start to run the app locally, then open this URL on your browser: http://localhost:3000/graphql-java-test-runner.
  • To look at the code, just open up the project in your favorite code editor.

Run tests

  • In your terminal cd to test-runner-frontend folder.
  • To run all tests run npm tests.
  • To run all tests with coverage precentage run npm test -- --coverage.

Deployment

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By contributing to this project (commenting or opening PR/Issues etc) you are agreeing to follow this conduct, so please take the time to read it.

License

Copyright (c) 2015, Andreas Marek and Contributors

Supported by

YourKit

YourKit supports this project by providing the YourKit Java Profiler.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

0