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

Fix the build for Expecto.BenchmarkDotNet.Tests #506

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Aug 16, 2024

I hadn't realised before, but it looks like the Expecto.BenchmarkDotNet.Tests test project isn't actually being built by the CI build - there are warnings in the build about not finding any projects to restore, e.g.

https://github.com/haf/expecto/actions/runs/10412005602/job/28836955136#step:4:355

And running it directly fails with an error about runTestsInAssembly not being found.

I don't know about the history of this project (maybe you don't actually want to run benchmarks during the CI build?) - but it seems wrong to not at least compile it?

@farlee2121
Copy link
Collaborator

Interesting. I agree that we'd at least want it building.
Depending on how slow the tests are, we could just run them with the other tests or we could create a new step for tests that only run in the CI build

@farlee2121 farlee2121 merged commit 16b0164 into haf:main Aug 18, 2024
2 checks passed
@Numpsy Numpsy deleted the bdn_tests branch August 18, 2024 16:41
@Numpsy
Copy link
Contributor Author

Numpsy commented Aug 18, 2024

I just recalled that something similar happened in FSharpLint where a BenchmarkDotNet project was silently broken due to not being compiled in the CI builds - fsprojects/FSharpLint#620 - so best to build things to avoid that situation.

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