nus-cs2113-AY2223S2 / forum

10 stars 0 forks source link

Text-ui-test #45

Open euzhengxi opened 1 year ago

euzhengxi commented 1 year ago

Hi Prof and all,

My group's TP requires input to be given line by line but the text-ui-test seems providing all inputs in one go into the program. This has resulted in the failure of the text-ui-test. Is anyone else facing this issue? Are there any workarounds for this? Thanks in advance!

Eg: program --> "Adding a Student ID : new o/StudentID [NAME] /f [FOLDER_NAME]" user --> "new o/A1234567 USR1 /f USR1" program --> "Please enter the url: " user --> "google.com"

program --> "Adding a Student ID : new o/StudentID [NAME] /f [FOLDER_NAME]" text-ui-test --> "new o/A1234567 USR1 /f USR1 google.com" program --> "Please enter the url: " text-ui-test -->

test failed

okkhoy commented 1 year ago

My group's TP requires input to be given line by line

May be a red-flag. Please read the project constraints

the text-ui-test seems providing all inputs in one go into the program

Possibly you are being haunted by the CRLF problem, but hard to say why without looking.

This has resulted in the failure of the text-ui-test

As mentioned in the lecture, you can technically eliminate text-ui-tests since you are spending effort on JUnit tests.

Are there any workarounds for this?

There could be; catch me one of these days pls; I will take a look.