ZuxingGit / pygments

Pygments is a generic syntax highlighter written in Python
http://pygments.org/
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

#2671 - Testing #3

Open adluu2k1 opened 2 months ago

IshaanVerma1130 commented 2 months ago

Under the pygments/test/examplefiles directory, we have a lot of different input files. For testing our first issue I've run the following command on the terminal from inside the root directory of the project.

pytest --update-goldens tests\examplefiles\<language>\<input code file>

example: pytest --update-goldens tests\examplefiles\cpp\example.cpp

this will generate the output with the tokens for the input in the same directory as the input file. Just change the path to the input file in the command to run a different file.