Skip to content

Craftsmanship-Community-Nagarro/cucumber-diseases-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagnosis and Treatment of Cucumber Diseases in Java with Cucumber

Can you spot the Cucumber Diseases in this code? We’ll explore the code smells lurking in Gherkin and Cucumber. 🧪👃 These subtle yet impactful issues can creep into our test scenarios, affecting readability, maintainability, and overall quality.

Refactor this code, take small steps, run the tests often. See how small and beautiful can make it.

Installation

For the workshop Java 17 or later is a pre-requisite for building und runnnig the Cucumber features. It needs to be installed before the local setup.

Local

Platform notes

The VC Code Cucumber extension fails on any Unix distribution. It's recommended to use VS Code on Windows.

Restrictions of missing Cucumber extension on Unix:

  • You won't have Gherkin support
  • You can't generate step definition
  • There is NO linkage between your feature files and step definition implementation
  • You are still able to edit all file and execute your Unit Tests.

gitpod.io

Since gitpod.io uses Linux, the same restrictions as on any other Unix distribution apply.

Open in Gitpod
  1. Login to GitHub or create an account.

  2. Create a new workspace at Gitpod. This usually takes a little while, just be patient.

  3. At the bottom there is a Terminal window executing the Maven build the of project. Wait until BUILD SUCCESS apprears in the log.

  4. Open from the file tree on the left and wait for the Java installation to finish.

  5. After the installation is done, you can open files via the Java Project explorer, edit the code, and select Run Tests on either the test folder or the RunAllCucumberTests class file.

Refactoring Exercises

The code contains multiple Cucumber smells. It's recommended to follow the suggested order. Each smell and exercise is described in a seperate assingment.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 76.7%
  • Gherkin 23.3%