-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1841 from pascalgrimaud/init-cucumber
Init: use cucumber for tests
- Loading branch information
Showing
4 changed files
with
74 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Feature: Init | ||
|
||
Scenario: Should init | ||
When I init default project | ||
Then I should have files in "" | ||
| .gitignore | | ||
| .gitattributes | | ||
| .editorconfig | | ||
| .eslintignore | | ||
| .lintstagedrc.js | | ||
| .prettierignore | | ||
| .prettierrc | | ||
| package.json | | ||
| README.md | | ||
And I should have files in ".husky" | ||
| pre-commit | | ||
And I should have files in ".git" | ||
| config | | ||
| HEAD | | ||
|
||
Scenario: Should init minimal | ||
When I init minimal default project | ||
Then I should have files in "" | ||
| .gitignore | | ||
| .gitattributes | | ||
| .editorconfig | | ||
| .eslintignore | | ||
| README.md | | ||
And I should have files in ".git" | ||
| config | | ||
| HEAD | | ||
And I should not have files in "" | ||
| .lintstagedrc.js | | ||
| .prettierignore | | ||
| .prettierrc | | ||
| package.json | | ||
And I should not have files in ".husky" | ||
| pre-commit | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
...st/java/tech/jhipster/lite/generator/init/infrastructure/primary/rest/InitResourceIT.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/test/java/tech/jhipster/lite/generator/init/infrastructure/primary/rest/InitSteps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package tech.jhipster.lite.generator.init.infrastructure.primary.rest; | ||
|
||
import io.cucumber.java.en.When; | ||
import tech.jhipster.lite.generator.ModulesSteps; | ||
|
||
public class InitSteps extends ModulesSteps { | ||
|
||
@When("I init default project") | ||
public void initFull() { | ||
applyModuleForDefaultProject("/api/inits/full"); | ||
} | ||
|
||
@When("I init minimal default project") | ||
public void initMinimal() { | ||
applyModuleForDefaultProject("/api/inits/minimal"); | ||
} | ||
} |