Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create MVP for Integration Tests #583

Open
hohwille opened this issue Sep 3, 2024 · 1 comment · May be fixed by #752
Open

Create MVP for Integration Tests #583

hohwille opened this issue Sep 3, 2024 · 1 comment · May be fixed by #752
Assignees
Labels
enhancement New feature or request

Comments

@hohwille
Copy link
Member

hohwille commented Sep 3, 2024

We need integration tests for IDEasy.
Details can be found in epic #572.

This story is about implementing a minimal viable product or in other words the smallest possible first step to get some first integration testing added to IDEasy that can later be extended.

Before implementing anything please first read #572 and come up with an idea how to implement it.
Discuss that in our daily or Tue meeting and start implementation after we agreed on that.

@hohwille
Copy link
Member Author

hohwille commented Nov 8, 2024

Idea is to create a bash file with functions sourced before execution of the actual test (should IMHO be sourced by the test runner and not every individual test script to make it simpler than it was in devonfw-ide).
There we can define a function doIdeCreate() that does the following:

  • local project-name="$(dirname "${BASH_SOURCE:-$0}")" (determine the name of the currently executed script)
  • local settings-url=${1:--} (set local variable settings-url to - as default but if an argument was given to the function use that arg to override default URL.
  • ide create ${project-name} ${settings-url}
  • cd ${IDE_ROOT}/${project-name}

then most integration test scripts can start with
doIdeCreate
and then do whatever they want to test...
ide install mvn

However an integration test of the help functionality would not call doIdeCreate.

@jan-vcapgemini jan-vcapgemini removed their assignment Nov 11, 2024
nmCapG added a commit to nmCapG/IDEasy that referenced this issue Nov 12, 2024
@hohwille hohwille linked a pull request Nov 12, 2024 that will close this issue
@hohwille hohwille moved this from Research to 🏗 In progress in IDEasy board Nov 12, 2024
@hohwille hohwille assigned hohwille and jan-vcapgemini and unassigned nmCapG Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

3 participants