I’ve got the quality assurance certification but I’m stuck setting up tests.
I would like to test the front end of an application I’m putting together in electron.js
I want to test stuff that does NOT pass through the server and interacts with the user. Just the front end (vanilla stuff mostly) At first it was no problem but it’s gotten so big that I feel I need ‘regressive tests’ (a term I found on the net, i.e. I change something and all the code goes nuts in every file I’ve written) . And just test everything because I overlook things and much later I bump into issues. I’d like to be a little more structured in my approach.
I did find Ahmed Bouchefra’s article on Jasmin. I started reading with much enthusiasm and then I got stuck because:
Now, create a folder for your project and navigate inside it: $ mkdir jasmine-project $ cd jasmine-project Next, run the following command to initialize your project for Jasmine: This command simply creates a spec folder and a JSON configuration file. This is the output of the dir command:
What command? There is no following command. He must have forgotten to add it.
I tried to send him a message on twitter but I’m not allowed to.
Could you give me some helpful tips? Electron offers testing but as I’ve understood it it tests data going to and from the server. I just want to test my front end.
I enjoyed mocha and chai very much but can that be used for my purpose? I find tools like Jasmin and Jest, but the lingo used is a bit much for me. Maybe I’m making it bigger than it is (wouldn’t be the first time) but I feel overwhelmed and I don’t know how to set it up.
Any help is welcome.
Thanks and greets,