BME-MIT-IET / ivt-hw-2023-cookie-byte

ivt-hw-2023-cookie-byte created by GitHub Classroom
MIT License
0 stars 0 forks source link

Adding BDD tests using Cucumber #16

Open KirolosSawiris opened 1 year ago

KirolosSawiris commented 1 year ago

For the BDD workflow, I created a feature folder that has multiple feature files that outlines various scenarios, describing the expected behavior of the library function under different conditions. Each scenario consists of given, when, and then steps, which map to the preconditions, actions, and expected outcomes of the test case. These steps are implemented using step definitions in the steps.js file, where you can write the necessary code to interact with the library function and perform assertions.

KirolosSawiris commented 1 year ago

I created 5 scenarios and 15 steps only one of them failed. check the documentation for more info.