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

OSOE-675: Set StopOnFail option to true un xunit.runner.json for Lombiq.OSOCE.Tests.UI #616

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

tteguayco
Copy link
Contributor

@tteguayco tteguayco commented Nov 15, 2023

OSOCE-675

This configuration file is ignored when running the tests directly from VisualStudio.

It takes the configuration file into consideration when running the tests via dotnet test.

A related issue was opened: xunit/visualstudio.xunit#392

@tteguayco tteguayco changed the title OSOCE-675: Set StopOnFail option to true un xunit.runner.json for Lombiq.OSOCE.Tests.UI OSOE-675: Set StopOnFail option to true un xunit.runner.json for Lombiq.OSOCE.Tests.UI Nov 15, 2023
@DemeSzabolcs
Copy link
Member

@tteguayco I pushed a little change, otherwise good. BTW the previous branch was okay, we are using OSOE naming for the branches, not OSOCE but no problem, it can stay now.

@tteguayco
Copy link
Contributor Author

Thank you @DemeSzabolcs!

@DemeSzabolcs
Copy link
Member

DemeSzabolcs commented Nov 18, 2023

@tteguayco Sorry, there are two more problems, could you please open another PR for fixing them?

  1. You will also need to add config in Lombiq.Tests.UI.Samples
  2. And you will need to add a note about it under https://github.com/Lombiq/UI-Testing-Toolbox/blob/dev/Lombiq.Tests.UI/Docs/Configuration.md#external-configuration.

@tteguayco
Copy link
Contributor Author

@DemeSzabolcs Sure, no problem. Two questions though:

  1. Would it be the same config file?
  2. What should the note include? Usage about stopOnFail?

@DemeSzabolcs
Copy link
Member

Thank you!

  1. Yes.
  2. Yes, see the end of this original comment: Fail-fast test execution if any test fails (OSOE-675) UI-Testing-Toolbox#309 (comment)

@tteguayco
Copy link
Contributor Author

Hey @DemeSzabolcs

Should the note really be included at the end of section https://github.com/Lombiq/UI-Testing-Toolbox/blob/dev/Lombiq.Tests.UI/Docs/Configuration.md#external-configuration? It looks like the snippet there being:

{
  "Lombiq_Tests_UI": {
    "AgentIndex": 3,
    "TimeoutConfiguration": {
      "RetryTimeoutSeconds": 5,
      "RetryIntervalMillisecondSeconds": 300,
      "PageLoadTimeoutSeconds": 120
    },
    "OrchardCoreUITestExecutorConfiguration": {
      "MaxRetryCount": 0,
      "RetryIntervalSeconds": 0,
      "MaxParallelTests": 0
    },
    "BrowserConfiguration": {
      "Headless": true
    }
  }
}

is not a xunit.runner.json like the one that was modified as part of this work.

@DemeSzabolcs
Copy link
Member

@tteguayco Hello. No that is not related, I think the best would be at the end of this part that mentions xunit.runner.json:
image

@tteguayco
Copy link
Contributor Author

tteguayco commented Nov 20, 2023

@DemeSzabolcs Awesome. I just created this PR (and the corresponding one for the OSOCE top-level solution): Lombiq/UI-Testing-Toolbox#325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants