nus-cs2103-AY2425S1 / forum

12 stars 0 forks source link

💡Duke A-TextUiTesting: cmd window closing too fast, and my solution #11

Open Meowloid opened 3 weeks ago

Meowloid commented 3 weeks ago

Hello friends, just wanting to share an experience in doing Week 2's project tasks.

I found that the cmd window opened and closed too fast for me to see the result of the comparison in the .bat file, and I learnt that adding 'pause' at the end of the .bat file keeps the cmd window open for you. Just throwing this out for everyone else on Windows, so you don't have to check both EXPECTED.TXT and ACTUAL.TXT manually.

Meowloid commented 3 weeks ago

I'll go ahead and close this discussion, as there's no issue to be solved.

damithc commented 3 weeks ago

We can keep this open, as it is a tip that others can benefit from. Thanks for sharing @Meowloid

Incogdino commented 3 weeks ago

Just to share another way of running the bat file on Window:

  1. Open up cmd and navigate to the text-ui-test folder
  2. Enter the file path of runtest.bat

This will run the script and compare the two files without closing the command prompt

Eg. Let's say your text-ui-test folder exists at C:\Users\name\CS2103\ip\text-ui-test. You will run C:\Users\name\CS2103\ip\text-ui-test\runtest.bat for step 2

damithc commented 3 weeks ago

Just to share another way of running the bat file on Window:

  1. Open up cmd and navigate to the text-ui-test folder
  2. Enter the file path of runtest.bat

This will run the script and compare the two files without closing the command prompt

@Incogdino Good suggestion 💯