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

Add new generate solution task #112

Merged
merged 3 commits into from
Aug 20, 2021
Merged

Conversation

Joaquimmnetto
Copy link
Contributor

@Joaquimmnetto Joaquimmnetto commented Aug 19, 2021

Description

Created new generateSolution task that generates a solution file (if it doesn't exists) by executing Unity's UnityEditor.SyncVS.SyncSolution method. Its a pretty simple operation, with no parameters needed so there are no properties associated to this task.

Changes

  • ADD new generateSolution task

Copy link
Member

@Larusso Larusso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good. Just write the test to check if the solution was created.

@@ -339,4 +339,13 @@ class UnityPluginIntegrationSpec extends UnityIntegrationSpec {
result.wasSkipped("returnUnityLicense")
result.wasExecuted("activateUnity")
}

@UnityPluginTestOptions(forceMockTaskRun = false, disableAutoActivateAndLicense = false)
def "runs generateSolution task from cli"() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't the task is necessarily invoked from the CLI. We could use a GUI to have them executed!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, in this case, you are right.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to the other conversation:

In this case, we are testing that the generateSolution task is generated by the plugin.

@Joaquimmnetto Joaquimmnetto merged commit 9c3bd81 into master Aug 20, 2021
@Joaquimmnetto Joaquimmnetto deleted the add/generateSolutionTask branch August 20, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants