nus-cs2103-AY2425S1 / forum

12 stars 0 forks source link

Test Ui Testing #87

Open tyxiangs opened 2 weeks ago

tyxiangs commented 2 weeks ago

Screenshot 2024-08-28 091640 Screenshot 2024-08-28 091651 Screenshot 2024-08-28 091739

Hi, I have tried many times for text-ui testing. It runs correctly but it only give output like FC: no differences encountered The expected result should be "Test result: PASSED" or "Test result: FAILED", what should I do to solve it ?

nus-se-bot commented 2 weeks ago

Tagging a few other students (randomly selected) who have completed related increments, in case they can pitch in: @CYX22222003 @KennethTeo2002 @dwsc37 @yiiilonggg @kaajinn @gohsl99 @rimgik @jloh02 @TechRaj @ethanwangkangen @Professional-Procrastinat0r @justsparsh @limyixiang @OrangeCatLoves @jonushzw Others are welcome to pitch in too.

gohsl99 commented 2 weeks ago

May be helpful: If you are on Windows machine, run runtest.bat in /text-ui-test/ directory, and you will not expecting "Test result: PASSED" or "Test result: FAILED" outputs, you will only see the output from FC command. If your are on nix machine, run runtest.sh in */text-ui-test/ directory, and you will be expecting to see "Test result: PASSED" or "Test result: FAILED" outputs. The 2 scripts are written differently, so they will not print the same set of outputs.

KennethTeo2002 commented 2 weeks ago

Your command is currently running the .bat file, which is designed to run on Windows. If you wish to run the Linux .sh file, might need to remove the "interpreter path" so that the command executed is just "bash .../runtest.sh"

jloh02 commented 2 weeks ago

If you want to run the bash script, avoid using the Windows git bash command as you will need to install dos2unix command too. As an alternative, you can use WSL and run the test script.

tyxiangs commented 2 weeks ago

I'm using window machine. So essentially I will only get the output from FC command and will not see "Test result: Passed" or "Test result: Failed" unless I use WSL to run the test script. Am I correct ?

gohsl99 commented 2 weeks ago

I'm using window machine. So essentially I will only get the output from FC command and will not see "Test result: Passed" or "Test result: Failed" unless I use WSL to run the test script. Am I correct ?

Yeah, runtest.bat will print output from FC command only. runtest.sh then will print "Test result: Passed" or "Test result: Failed".

nus-se-bot commented 6 days ago

@tyxiangs A gentle reminder to close this issue if the problem has been resolved. If not resolved yet, please post a comment explaining which part of the problem/question remains unresolved.