Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Competitve CompanionNew to Visual Studio Code? Get it now.
Competitve Companion

Competitve Companion

Akash Sharma

|
31,594 installs
| (0) | Free
This is your Competitive Companion, with this extension you can make test cases for your cpp file, run any files on them and see the result of your submission.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

code-tester README

This is your Competitive Companion, with this extension you can make test cases for your cpp file, run any files on them, see the result of your submission, make test cases for your custom test case generator.

Happy rating to you all.

How to make test cases

  • 1.> Make Test cases
  • Make your solution.cpp file and take input via 'cin' .
  • Specify limits in comments for each variable after cin (in same line).
  • Seperate upper and lower limits via '-'
  • You can give multiple limits of different viariables seprated by spaces(' ').
  • for example "cin>>a;//1-15".
  • for example "cin>>b>>c;//1-15 2-20".

  • 2.> Specify Time limit and number of test cases to be made
  • Make an extra commented line at the end of the code.
  • Specify Timeout and number of test cases to be made.
  • Specify each value via '-'.
  • Seperate items via spaces.
  • for example "//timeout-2000 num-5"
  • num represented number of test cases to be formed
  • If you dont specify timeout then by default it set to "2000" milliseconds.

  • 3.> Running test on a file
  • Make an extra commented line at the end of the code.
  • Specify Timeout and filename(if running tests).
  • Specify each value via '-'.
  • Seperate items via spaces.
  • for example "//timeout-2000 test-in00.txt"
  • test represented filename of the test case
  • If you dont specify test then by default it set to "all".
  • If you dont specify timeout then by default it set to "2000" milliseconds.

  • 4.> Making test case from a different file
  • This step is same as of 2.

Requirements

Cpp compiler is required for the extension to work

Release Notes

  • Creation of test cases
  • Run test cases
  • Create test cases via custom cpp files

0.0.3

  • Limits accurary linted

0.0.0

  • Only Cpp is supported

Icon Credits

  • Code Icon by Google Inc.

Meet the developer:

  • Akash Sharma

Happy Rating

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft