Hi guys!
As I mentioned before, I am creating a package to built TUIs using Ncurses. My problem is: how can I develop tests? It seems that it is not possible since all the things needs interactions with the user and read what is on the screen. Can anyone help me?
Write a ncurse code.
Direct the output to a text file.
Compare the text file with a fixed text file.
If the two files are identical, then the test is a success!
Otherwise the test is a failure.
I have now idea how can I do this inside Julia with the test framework. Can you please help me?
Is it possible to set up a guthub repo for this? It makes it easier to give concrete suggestions
Yeah! Tomorrow I will have the first commit!
Hi guys,
This is the package I want to add tests: GitHub - ronisbr/TextUserInterfaces.jl: Text user interfaces for Julia
In Travis, I cannot even load libncurses
in Linux. In macOS it works fine:
Something like this should install ncurses
for you. Also have a look at TerminalRegressionTests.jl
for testing (not sure how well it works atm though).
Thanks! I tried to install Ncurses with something like you posted without success:
before_install:
# If it is linux, we must install `libncurses`.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --reinstall libncurses5 libncursesw5; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --reinstall libncurses5-dev libncursesw5-dev; fi