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

Run project tests as part of template testing #623

Merged
merged 17 commits into from
Jul 26, 2024

Conversation

Larocceau
Copy link
Contributor

  • Add build action in default project to run tests one-off using mocha test runner (instead of in browser)
  • Add build action in template build script to run these tests

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

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

This looks like a good step in the right direction 🙂 I've made a few suggestions

azure-pipelines.yml Outdated Show resolved Hide resolved
Content/default/Helpers.fs Outdated Show resolved Hide resolved
Content/default/Helpers.fs Show resolved Hide resolved
Content/default/Build.fs Outdated Show resolved Hide resolved
Build.fs Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Maybe to make the distinction clearer, we should call these targets "RunTestsHeadless" and "WatchRunTests"?

If we rename "RunTests" we should also update docs, so I'm happy for that to be split into a separate issue/PR rather than done now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

did the rename for runTestsHeadless, let's do the other change next week in conjunction with a docs update

Copy link
Member

Choose a reason for hiding this comment

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

Thanks! Could you raise an issue to make sure that we remember to do that?

Copy link
Member

Choose a reason for hiding this comment

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

Let's make sure to update the docs too 👍🏼

@Larocceau Larocceau force-pushed the run-project-tests-as-part-of-template-testing branch from 31e1f34 to 60a9a97 Compare July 12, 2024 15:23
@Larocceau
Copy link
Contributor Author

All feedback dealt with

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

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

Happy for this to be merged so long as the docs are updated to reflect the changed target name

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

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

Oh, one last thing: the template's README needs updating to reflect the changed target name.

@mattgallagher92
Copy link
Member

My last comment is wrong - the README had already been updated.

@mattgallagher92 mattgallagher92 merged commit 304f192 into master Jul 26, 2024
1 check passed
@mattgallagher92 mattgallagher92 deleted the run-project-tests-as-part-of-template-testing branch July 26, 2024 11:35
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.

2 participants